isIntermediarySegment

Checks if the current segment is an intermediary segment (i.e., not first and not last)