public static boolean hasTerms(final ExpressionOperator expressionOperator) {
        if (expressionOperator != null) {
            for (final ExpressionItem child : NullSafe.list(expressionOperator.getChildren())) {
                if (child != null && child.enabled()) {
                    if (child instanceof ExpressionOperator) {
                        final ExpressionOperator childOperator = (ExpressionOperator) child;
                        if (hasTerms(childOperator)) {
                            return true;
                        }
                    } else if (child instanceof ExpressionTerm) {
                        // Found an enabled term so our work is done
                        return true;
                    }
                }
            }
        }
        return false;
    }
@return True if there are at least one enabled term under the expressionOperator
stroom-query/stroom-query-api/src/main/java/stroom/query/api/ExpressionUtil.java