check array size in boolean functions