Use the code from Group#isEmpty() and CompoundPath#isEmpty() for Item#isEmpty(), since any item that does not have children overrides it.
Correct comment.
Implement CompoundPath#firstSegment, #lastSegment, #firstCurve and #lastCurve.