Fix for zero length array checking

A fix for eroneously matches of zero length arrays will when using
'has' to search for strings in an array.
Merge pull request #22 from lea-anthony/fix-for-issue-19

Fix for empty array checking