Shim for ECMAScript 5 Array.isArray