Fix comparison with `None`