boolean array check with refactored array checks