isLastSegment

Checks if the current segment is the last segment