array to bool