use isArray polyfill everywhere