these could be combined into
```python
if user_data:
    # stuff
else:
    # other stuff
```