Node has a native method in util for isArray would it not be better to use that
http://nodejs.org/api/util.html#util_util_isarray_object