Refactored Interval.isEmpty, Interval.isPoint.