suggest inverting here:

```
if errors:
  # do stuff
else:
  # do other stuff
```

if errors is a ``list``, then the above works without calling ``len()``