Use better way to check if the method is an array.
Update dist.
Merge pull request #60 from treshugart/master

Fix error when checking a null property if it is an array.