Array.isArray when available rather than instanceof