public function needsUpdate() : bool
{
$config = State::instance();
$path = \implode(DIRECTORY_SEPARATOR, [ROOT, 'tmp', 'last_update_check.txt']);
if (\is_readable($path)) {
$last = \file_get_contents($path);
return time() - $last > $config->universal['auto-update']['check'];
}
return true;
}