public static boolean shouldRenderFacet(UIComponent facet) {
        return shouldRenderFacet(facet, false);
    }
Checks if the facet and one of the first level children is rendered.
@param facet The Facet component to check
@return true when facet and one of the first level children is rendered.
primefaces/src/main/java/org/primefaces/util/FacetUtils.java