Use isArray when available