Because the equivalent would have had to be:

```
if hasattr(unit, '_format') and 'latex' in unit._format:
    s = unit._format['latex']
```

This just prevents looking up in the dictionary twice, but it probably doesn't matter in the grand scheme of things.