Fix for Array.isArray

Fix for Array.isArray as not supported by older browsers