The common wisdom suggests that using Any() is often more performant than Count() for determining if a collection contains elements.…