fixed bug in $hasAll

matches wasn't initiallised