public static bool GetBoolValueOrDefault(this IDictionary<string, string> dict, string key, bool defVal) { string output; return dict.TryGetValue(key, out output) ? output.ToBool(defVal) : defVal; }