Cannot convert null to 'bool' because it is a non-nullable value type