See https://www.autoitscript.com/wiki/FAQ#How_can_I_test_if_checkbox_/_radiobutton_is_checked?
In previous versions of AutoIt GUICtrlRead() returned more states (focused,disabled,...) so this approach with BitAnd() was the only one exactly correct.
In latest versions of AutoIt GUICtrlRead() returns only checked/unchecked states (and not others) so now (if you don't use older AutoIt's version) you can use simpler GUICtrlRead($control) = $GUI_CHECKED
Example of difference:
In older AutoIt if chekbox was checked and also disabled then GUICtrlRead($control) = $GUI_CHECKED returns FALSE
snippet from old AutoIt' helpfile for GUICtrlRead():
snippet from new AutoIt' helpfile for GUICtrlRead():