private function deleteConfigFileIfNeeded()
{
$config = Config::getInstance();
if ($config->existsLocalConfig()) {
$config->deleteLocalConfig();
// deleting the config file removes the salt, which in turns invalidates existing cookies (including the
// one for selected language), so we re-save that cookie now
$this->resetLanguageCookie();
}
}