use Array.isArray() not instanceof Array
Merge pull request #105 from DanielBarnes/master

Consistent usage of Array.isArray()