Check for Array.isArray first and only fallback if doesn't exist to a shim