turned an array into a boolean