public bool hasValue(string key) { List<string> allKeys = new List<string>(ConfigurationManager.AppSettings.AllKeys); return allKeys.Contains(key); }