It is better to have something like:
```python
@property
def is_current(self):
    return self._browser.driver.current_window_handle == self.name

@is_current.setter
def is_current(self, value)
    if value is True:
        self._browser.driver.switch_to_window(self.name)
    else:
        raise TypeError("can only set to True")
```

See https://docs.python.org/2/library/functions.html#property for more details about properties if necessary