Why the change from has_key to in here?