removed $hasAll and $notAll