Replaces map with boolean function and contains true/false with .exists() or !.forall().

Before:

seq.map(p).contains(true)
seq.map(p).contains(false)

After:
seq.exists(p)
!seq.forall(p)