Correct check for array fixes #21

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/isArray
Merge pull request #22 from KyleAMathews/fix-21

Correct check for array fixes #21