How about this instead?

``` python
if 'extensions' not in locals():
    extensions = []
extensions.append('readthedocs_ext.readthedocs')
```