modifying isArray