If these lines are to make the following work, might the following simply be written as 

```
options.problems = options.problems > 0
...
```