Added Array.isArray polyfill for old browsers.