Make sure grep() and first() use the same check