adding Array.isArray shim to support ancient browsers