public function hasEnded(array $keys) { $node = $this->getTreeNode($keys); return isset($node[self::MARKER_END]); }