Simplifying the isAnArray method.