Check if a given key already exists in a dictionary,('key1' in dict)