Alternative:

```python
return len(filter(record.name.startswith, self.rules)) > 0
```