public boolean isEmpty() {
        return getRoot() == null || getRoot() instanceof NullItem || getItemCount() == 0;
    }
Returns true if this represents the null query
container-search/src/main/java/com/yahoo/search/query/QueryTree.java