not important, but i would perhaps write a single `if`:

```python
if resume or checkpoint(...)
```