All issues
Anti-pattern
Bug risk
Coverage
Documentation
Performance
Secrets
Security
Style
Type check
Any()
The Any() method lets you check for emptiness of an array or a collection. Consider using it over Count().
Count()
var isNotEmpty = arr.Count() != 0;
var isNotEmpty = arr.Any();