Use a shim for Array.isArray if running in a pre-ES5 browser.