You can do this a bit cleaner
```python
if isinstance(data, list):
    failfast = False
elif isinstance(data, dict):
    failfast = data.get('failfast', False)
    data = data['content']
else:
    raise NotImplementedError("Individual requests have body of unsupported json type(other than list and dict)")

return failfast, data
```