code: public boolean template(String element, String elementlist, boolean checkall) {
  
          if (isNotInitialized()) {
              return true;
          }
          try {
              return CmsJspTagTemplate.templateTagAction(element, elementlist, checkall, false, getRequest());
          } catch (Throwable t) {
              handleException(t);
          }
          return true;
      }
docs: Checks if a template part should be used or not, same as using
  the <code>&lt;cms:template element="***" ifexists="***" /&gt;</code> tag.<p>
  
  @param element the template element to check
  @param elementlist the list of elements to check
  @param checkall <code>true</code> if all elements in the list should be checked
  @return <code>true</code> if the element is active, <code>false</code> otherwise
  
  @see org.opencms.jsp.CmsJspTagUser