simplify logic in array testing
(#6)