How to check if an option does not exists in a IEnumerable?

statement is returning a boolean, so you can assign the return to a Boolean variable or use it within a condition e.g. IF Activity as you do need

About LINQ and the Any Operator has a look here: