Check a pool member exists in a specific pool

def check_member_pool(self, member, pool_name):
        '''
        Check a pool member exists in a specific pool
        '''
        members = self.bigIP.LocalLB.Pool.get_member(pool_names=[pool_name])[0]
        for mem in members:
            if member == mem.address:
                return True
        return False