Don't know if you know but It's possible to re-write this like so:
```
return unless ($start && $end);
```