protected function determineMapFor(int $index, string $column, int $mainPage): int
    {
        // Lookup all children of page in main language.
        $mainSiblings = $this->database->getArticlesByPid($mainPage, $column);

        return isset($mainSiblings[$index]) ? (int) $mainSiblings[$index]['id'] : 0;
    }