Array to boolean comparison