Avoid O(n) complexity using Any() instead of Count()