public boolean hasRankProfile() {
        return profile != null;
    }
Returns whether a rank profile has been explicitly set.

This is only used in serializing the packet properly to FS4.
container-search/src/main/java/com/yahoo/search/query/Ranking.java