code: public static boolean foundFunctionInAnyGroupHeader(ReportLayout layout) {
  		List<Band> groupHeaderBands = layout.getGroupHeaderBands();
  		for (Band band : groupHeaderBands) {
  			boolean found = foundFunctionInBand(band);
  			if (found) {
  				return true;
  			}
  		}
  		return false;
  	}
docs: Test to see if a function is found in any group header band
  
  @param layout report layout
  @return true if a function is found in any group header band, false otherwise