I would just do a:
```python
if order is None:
     return ''

s = []
s.append....
```