code: public boolean isQueryPageArchived(QueryPage queryPage) {
      if (queryPage.getArchived()) {
        return true;
      }
      
      QuerySection querySection = queryPage.getQuerySection();
      if (querySection.getArchived()) {
        return true;
      }
      
      return isQueryArchived(querySection.getQuery());
    }
docs: Returns whether query page is archived or not
  
  @param queryPage query page
  @return whether query page is archived or not