docs: def _acl_exists(name=None, id=None, token=None, consul_url=None):
      '''
         Check the acl exists by using the name or the ID,
         name is ignored if ID is specified,
         if only Name is used the ID associated with it is returned
      '''
  
      ret = {'result': False, 'id': None}
  
      if id:
          info = __salt__['consul.acl_info'](id=id, token=token, consul_url=consul_url)
      elif name:
          info = __salt__['consul.acl_list'](token=token, consul_url=consul_url)
      else:
          return ret
  
      if info.get('data'):
          for acl in info['data']:
              if id and acl['ID'] == id:
                  ret['result'] = True
                  ret['id'] = id
              elif name and acl['Name'] == name:
                  ret['result'] = True
                  ret['id'] = acl['ID']
  
      return ret