based on the `get()` call above, shouldn't this be `if payload is not None`?