'return whether a volume exists'

def exists_volume(self, volume):

    exist_volumes = self.get_volumes()
    volume_found = False
    for exist_volume in exist_volumes:
        if (exist_volume['name'] == volume['name']):
            volume_found = True
            break
    return volume_found
