/// <summary> /// Checks all setting keys, if are enabled in actual scope. /// If no settings are specified, true is returned. /// </summary> /// <returns>If no settings are specified, true is returned, otherwise all settings have to be true in actual scope.</returns> private bool IsModuleEnabledBySettingKeys() { if (AtLeastOne) { return(SettingsList.Any(key => IsSettingEnabledInActualScope(key))); } return(!SettingsList.Exists(key => !IsSettingEnabledInActualScope(key))); }