nitpick but you can just do:
```python
if not relations:
```
here