Use Array.isArray for type checking.