using System;
public class Program
{
public static void Main()
string boolConfigValue = "DanSmells";
// This will return false when we want true really
Console.WriteLine(bool.TryParse(boolConfigValue, out var parsedBool) && !parsedBool);
// This will return true if the config is either not a bool or it is false
Console.WriteLine(!bool.TryParse(boolConfigValue, out parsedBool) || !parsedBool);
}