Good point. If we stick to node 0.10 and after, we could probably directly use Array.isArray() and remove isArray() with the fallback to:  return (!!a) && (a.constructor === Array);