What's the problem with using a `dict` for this?

```python
>>> d = {'foo': 1}
>>> d.pop('foo', 2)
1
>>> d
{}
>>> d.pop('foo', None)
>>> 
```