Use { Count: > 0 } to check if the collection is not null and if the count is greater than 0 at the same time.
{ Count: > 0 }
null
if(yourCollection is { Count: > 0 }) { }