```python
if proxy is not None:
   ...
```