Using @juliangruber’s isarray module to support older browsers.