C# running on .NET Framework/ .NET Core 5 (or just .NET 5) has a lot of classes which define such boolean members. For example String.IsNullOrEmpty as relative prominent connotation. And yeah, to negate that, you have to write
if(!string.IsNullOrEmpty(myString))
This can be confusing but it is the way how Microsoft designed it