I like the style of putting
```python
    else:
        not_found = False
```
here to kind put the two cases on the same level, but not a strong preference