fix Fatal error: Cannot use Object as array,  is an Object not an array
Merge pull request #96 from ychadwick/master

fix Fatal error: Cannot use Object as array,  is an Object not an array