'Checks if a flexvol exists on the storage array.'

def flexvol_exists(self, volume_name):

    LOG.debug('Checking    if    volume    %s    exists', volume_name)
    api_args = {'query': {'volume-attributes': {'volume-id-attributes': {'name': volume_name}}}, 'desired-attributes': {'volume-attributes': {'volume-id-attributes': {'name': None}}}}
    result = self.send_iter_request('volume-get-iter', api_args)
    return self._has_records(result)
