Use Array.isArray when building for node.js

This seemed to be the easiest way to do this, but I'm open to other ideas.