Let's just

```python
if tree:
   ...
```