code: def is_empty(self):
          
          if len(self.columns) == 0:
              return True
  
          if len(self.columns) == 1 and self.columns[0].name == 'id':
              return True
  
          return False
docs: Return True if the table has no columns or the only column is the id