FWIW here it should work with
```
self.sleep(sleepTime and sleepTime or timeout)
```