fix for es<5 not having Array.isArray()