Instead of doing ContainsKey do TryGetValue and to avoid the double lookup (pedantic).