The null/empty checking for items could be avoided by using the following `for` condition:

```
for (LineItem item : getItems())
```