<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _name_exists(self, name):
 """ Checks if we already have an opened tab with the same name. """

        for i in range(self.count()):
            if self.tabText(i) == name:
                return True
        return False