public boolean hasLabel(String label) {
        for (Level level : levels) {
            if (level.isLabel && level.value.equals(label)) {
                return true;
            }
        }

        return false;
    }
Returns true if the topic contains the given label string.

@param label Label to check for.
@return Returns true if the label exists in the topic.
smithy-mqtt-traits/src/main/java/software/amazon/smithy/mqtt/traits/Topic.java