public static boolean shouldRenderChildren(UIComponent component) {
        for (int i = 0; i < component.getChildCount(); i++) {
            if (component.getChildren().get(i).isRendered()) {
                return true;
            }
        }

        return false;
    }
Checks if the component's children are rendered
@param component The component to check
@return true if one of the first level child's is rendered.
primefaces/src/main/java/org/primefaces/util/ComponentUtils.java