code: def exists(*nictag, **kwargs):
      '''
      Check if nictags exists
  
      nictag : string
          one or more nictags to check
      verbose : boolean
          return list of nictags
  
      CLI Example:
  
      .. code-block:: bash
  
          salt '*' nictagadm.exists admin
      '''
      ret = {}
      if not nictag:
          return {'Error': 'Please provide at least one nictag to check.'}
  
      cmd = 'nictagadm exists -l {0}'.format(' '.join(nictag))
      res = __salt__['cmd.run_all'](cmd)
  
      if not kwargs.get('verbose', False):
          ret = res['retcode'] == 0
      else:
          missing = res['stderr'].splitlines()
          for nt in nictag:
              ret[nt] = nt not in missing
  
      return ref exists(*nictag, **kwargs):
      '''
      Check if nictags exists
  
      nictag : string
          one or more nictags to check
      verbose : boolean
          return list of nictags
  
      CLI Example:
  
      .. code-block:: bash
  
          salt '*' nictagadm.exists admin
      '''
      ret = {}
      if not nictag:
          return {'Error': 'Please provide at least one nictag to check.'}
  
      cmd = 'nictagadm exists -l {0}'.format(' '.join(nictag))
      res = __salt__['cmd.run_all'](cmd)
  
      if not kwargs.get('verbose', False):
          ret = res['retcode'] == 0
      else:
          missing = res['stderr'].splitlines()
          for nt in nictag:
              ret[nt] = nt not in missing
  
      return ret
docs: Check if nictags exists
  
      nictag : string
          one or more nictags to check
      verbose : boolean
          return list of nictags
  
      CLI Example:
  
      .. code-block:: bash
  
          salt '*' nictagadm.exists admin