public override bool Matches(KtaneModuleInfo module, JsonDict json) { var str = GetValue(module)?.ToString(); return(str == null || (json.ContainsKey(str) && json[str].GetBool()) || json.All(v => !v.Value.GetBool())); }