Test for 'sources' is done in similar loop few lines ago but not here. Not sure if it should be added here or removed before.
```python
if 'sources' in recording.children:
```