If `outline` element has children(s) and doesn't have `xmlUrl` attribute, that is a `FeedCategory`, not a `Feed`.
So it shoud be
```python
if outline_obj.children or not outline.xml_url:
```