public function isCheckRequired()
{
if ($this->expired === false) {
return false;
}
if ($this->cacheFile->exists()) {
$expiryTimestamp = (int) $this->cacheFile->read();
} else {
$expiryTimestamp = 0;
}
$ts = Carbon::createFromTimestamp($expiryTimestamp + self::CHECK_INTERVAL);
return $this->expired = $ts->isPast();
}