node-friendly isArrayLike implementation