If you change to use `None` instead of `"Nothing"` you can just say `if not device:`