code: public boolean isFolderArchived(Folder folder) {
      if (folder.getArchived()) {
        return true;
      }
      
      Folder parentFolder = folder.getParentFolder();
      if (parentFolder != null) {
        return isFolderArchived(parentFolder);
      } else {
        Panel panel = panelDAO.findByRootFolder(parentFolder);
        if (panel != null) {
          return panelController.isPanelArchived(panel);
        }
      }
  
      return false;
    }
docs: Returns whether folder is archived
  
  @param folder folder
  @return whether folder is archived