Suggest simplifying a bit:
```
    if filename:
        self.load(filename, required)
```