Yes, it's correct. It will be True only if both keys are in the dictionary.