code: public boolean existsResource(CmsUUID structureId, CmsResourceFilter filter) {
  
          return m_securityManager.existsResource(m_context, structureId, filter);
      }
docs: Checks the availability of a resource in the VFS,
  using the <code>{@link CmsResourceFilter#DEFAULT}</code> filter.<p>
  
  A resource may be of type <code>{@link CmsFile}</code> or
  <code>{@link CmsFolder}</code>.<p>
  
  The specified filter controls what kind of resources should be "found"
  during the read operation. This will depend on the application. For example,
  using <code>{@link CmsResourceFilter#DEFAULT}</code> will only return currently
  "valid" resources, while using <code>{@link CmsResourceFilter#IGNORE_EXPIRATION}</code>
  will ignore the date release / date expired information of the resource.<p>
  
  This method also takes into account the user permissions, so if
  the given resource exists, but the current user has not the required
  permissions, then this method will return <code>false</code>.<p>
  
  @param structureId the structure id of the resource to check
  @param filter the resource filter to use while checking
  
  @return <code>true</code> if the resource is available
  
  @see #readResource(CmsUUID)
  @see #readResource(CmsUUID, CmsResourceFilter)