How to check for a condition inside a pipe chain?

A post was split to a new topic: StackOverflow culture