You can (and should) combine these `if` statements together:
```python
# only update if we have a static_tab and its name has changed
if static_tab and static_tab['name'] != xblock.display_name:
```