Replaces filter and size check with exists.
Before:

seq.filter(predicate).size == 0
seq.filter(otherPredicate).length > 0

After:

!seq.exists(predicate)
seq.exists(otherPredicate)