This method is private and only called from `set_key` and `get_id` methods.
These methods checks whether `key` exists.
So this code is safe. But assertion is preferred. I add.