You can change this part to
```python
if None in solution:
    return ()
```