`multi` can contain an object evaluated to `False`? or you meant to know if there is no 'multi' in that `dict`.
If the second case is the case, you should use `is`.

```python
if multi is not None:
```