This isn't bad, but if you just want to check to see of any of the tabs match a certain criteria, you may want to use Python's `any` function, instead:

```python
def correct_tab(tab):
    return tab['type'] == 'static_tab' and tab['url_slug'] == url_slug

tab_found = any(correct_tab(tab) for tab in course.tabs)
```