should be
```python
    if not url_has_any_extension(parsed_url, self.extensions):
```