Use .first() instead of .count()

We’re only interested in a pathway being present, not in how many
pathways are present.