Nullable bool and if statement

I was writing some code in EF Core’s codebase and saw different way of writing condition on nullable bool.