This feels like overkill. You're using this as one might use
```python
if element.get('is_section'):
```