Something like this feels more appropriate:
```python
locator = self._popular_category_tab_locator
return self.find_element(*locator).get_attribute("class") == 'active':
```