private function getLinkElement(string $key): int
    {
        $link = -1;
        if (array_key_exists($key, $this->links)) {
            $link = intval($this->links[$key], 10);
        }
        return $link;
    }