use Array.isArray() no instanceof Array
Merge pull request #990 from DanielBarnes/master

Use native Array.isArray() instead of "instanceof Array"