Any particular reason why you are doing it this way instead of just
```python
if device_info
```
I'm mostly wondering what the python preferred style is.