code: protected function isRangeOpen($range)
      {
          $nb = count($range);
          return $nb && ($nb % 2) && ($range[$nb - 1]->getType() == TimePoint::TYPE_START);
      }
docs: Check if the provided range is open (START TimePoint and no related END)
  @param array $range
  @return bool