use

```python
if lic_file is not None:
```