Check to see if a pool exists

def check_pool(self, name):
        '''
        Check to see if a pool exists
        '''
        pools = self.bigIP.LocalLB.Pool
        for pool in pools.get_list():
            if pool.split('/')[-1] == name:
                return True
        return False