I'd use:
```
if (!invalidOverrides.isEmpty()) {
```
No point in counting EVERYTHING to handle this if clause. Clearly you'd be happy if it had one item. So checking for whether it is empty or not would be better, despite what we did with errors.size() earlier.