private function isBaseElement(Segment $segment, $position) { if ($segment->is_base() && $position === 1) { return true; } return false; }