// To check if a dictionary has a certain key, use 'ContainsKey()' dict.ContainsKey(key);
if (dict.ContainsKey(key)) { ... } //or dict.TryGetValue(key, out value);