Fix for empty array checking

When using 'has' to search for strings in an array, it will currently match records with empty arrays. This patch fixes this issue.