This would make the loop easy to follow. 
```python
if rule.strip() == '': 
    continue
# rest of the code
```