Can this be an AND instead of a nested if?

```python
if (response.status_code = http_client.INTERNAL_SERVER_ERROR and
        settings.DEBUG):
    return response
```