using built-in isArray function