public default boolean hasLabel(final String label) {
        return this.labels().stream().filter(labels -> labels.contains(label)).findAny().isPresent();
    }
Return true if the path has the specified label, else return false.

@param label the label to search for
@return true if the label exists in the path
gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/process/traversal/Path.java