public static function setTrackedTopics($tracked_topics = null)
    {
        if (!empty($tracked_topics)) {
            // Sort the arrays (latest read first)
            arsort($tracked_topics['topics'], SORT_NUMERIC);
            arsort($tracked_topics['forums'], SORT_NUMERIC);
        } else {
            $tracked_topics = ['topics' => [], 'forums' => []];
        }

        return setcookie(
            ForumSettings::get('cookie_name') . '_track',
            json_encode($tracked_topics),
            time() + ForumSettings::get('o_timeout_visit'),
            '/',
            '',
            false,
            true
        );
    }