It's not about removing it, it's the difference between 
```python
if not X in list:
```
and
```python
if X not in list:
```
The former means that if for any reason the object is a bool, then you can have a problem. I agree in this case it does not really matter, but I think it's better to make the distinction.