Returns true if the WURFL is out of date or otherwise needs to be reloaded

@return bool
421801
private function hasToBeReloaded()
    {
        if (!$this->getWurflConfig()->allowReload) {
            return false;
        }

        $state = $this->getPersistenceStorage()->load(self::WURFL_API_STATE);

        return !$this->isStateCurrent($state);
    }
602713
public function isExpired() : bool
    {
        return $this->getExpiryAttribute()->timestamp < Carbon::now()->timestamp
            && $this->length !== 0
            && !$this->isRemoved();
    }
1150954
public function maybeExpireTrial(): bool
    {
        if (!$this->isTrialExpired()) {
            return false; // Not applicable.
        } elseif (!$this->App->Parent || !$this->App->Parent->is_core) {
            return false; // Not applicable.
        }
        $this->App->Parent->s::maybeRequestLicenseKeyViaNotice($this->App->Config->©brand['©slug']);

        return true; // Trial expired, yes.
    }
250256
public function reload()
    {
        $this->getPersistenceStorage()->setWURFLLoaded(false);
        $this->remove();
        $this->invalidateCache();
        $this->init();
        $this->getPersistenceStorage()->save(self::WURFL_API_STATE, $this->getState());
    }
1319126
public function isEsiDown(): bool
    {

        // Check if we may have hit an error threshold
        if ($this->isEsiRateLimited()) return true;

        // Get the latest ESI status.
        $status = Cache::remember('esi_db_status', 1, function () {

            return EsiStatus::latest()->first();
        });

        // If we don't have a status yet, assume everything is ok.
        if (! $status) return false;

        // If the data is too old, return false by default.
        // Not being able to ping ESI could be indicative
        // of many other problems.
        if ($status->created_at->lte(carbon('now')->subHours(2)))
            return true;

        // If the status is OK, yay.
        if ($status->status == 'ok')
            return false;

        return true;
    }
805638
def check_if_ok_to_update(self):
        """"""
        current_time = int(time.time())
        last_refresh = self.last_refresh
        if last_refresh is None:
            last_refresh = 0
        if current_time >= (last_refresh + self.refresh_rate):
            return True
        return False
747633
protected function refreshAccessTokenIfRequired(): bool
    {
        if (!$this->client->isAccessTokenExpired()) {
            return false;
        }

        $this->logger->info('The access token is expired; refreshing the token');

        try {
            $accessToken = $this->client->fetchAccessTokenWithRefreshToken();
        } catch (\Exception $exception) {
            throw new \RuntimeException('Failed to refresh the token: '.$exception->getMessage());
        }
        if (isset($accessToken['error'])) {
            throw new \RuntimeException('Google has declined refreshing the token: '.($accessToken['error_description'] ?? '(no message)'));
        }

        return true;
    }
1280420
public static function isUpdaterSetup()
    {
        if (Option::get(self::LOC_URL_OPTION_NAME) !== false
            || Option::get(self::ISP_URL_OPTION_NAME) !== false
            || Option::get(self::ORG_URL_OPTION_NAME) !== false
        ) {
            return true;
        }

        return false;
    }
278273
public function VersionWarning()
    {
        $page = $this->owner->getPage();

        if (!$page) {
            return false;
        }

        $entity = $page->getEntity();

        if (!$entity) {
            return false;
        }

        $versions = $this->owner->getManifest()->getAllVersionsOfEntity($entity);

        if ($entity->getIsStable()) {
            return false;
        }

        $stable = $this->owner->getManifest()->getStableVersion($entity);
        $compare = $entity->compare($stable);

        if ($entity->getVersion() == 'master' || $compare > 0) {
            return $this->owner->customise(
                new ArrayData(
                    array(
                        'FutureRelease' => true,
                        'StableVersion' => DBField::create_field('HTMLText', $stable->getVersion())
                    )
                )
            );
        } else {
            return $this->owner->customise(
                new ArrayData(
                    array(
                        'OutdatedRelease' => true,
                        'StableVersion'   => DBField::create_field('HTMLText', $stable->getVersion())
                    )
                )
            );
        }

        return false;
    }
202177
public function canUpdate()
    {
        return $this->canModify() && (
            $this->canInstall() || (
                ! empty( $this->installedVersion ) && (
                    ( ( $this->availableVersion == 'dev-master' ||
                        $this->installedVersion == 'dev-master' ) &&
                      $this->installedReference != $this->availableReference ) ||
                    version_compare(
                        $this->availableVersion,
                        $this->installedVersion,
                        '>'
                    )
                )
            )
        );
    }
183215
public function isVersioned()
    {
        if (!$this->ObjectClass || !class_exists($this->ObjectClass)) {
            return false;
        }
        /** @var Versioned|DataObject $singleton */
        $singleton = DataObject::singleton($this->ObjectClass);
        return $singleton->hasExtension(Versioned::class) && $singleton->hasStages();
    }
1010811
public function isExpiredLink()
    {
        if (($sKey = $this->getUpdateId())) {
            $blExpired = oxNew(\OxidEsales\Eshop\Application\Model\User::class)->isExpiredUpdateId($sKey);
        }

        return $blExpired;
    }
1292194
def is_up_to_date(outfile, basedatetime):
        # type: (AnyStr, datetime) -> bool
        """"""
        if os.path.exists(outfile):
            if os.path.getmtime(outfile) >= basedatetime:
                return True
        return False
1250805
public static function isValid() {
		if(isset($_SESSION['dachi_closed']) && !isset($_SESSION['dachi_expires']))
			return false;

		if(isset($_SESSION['dachi_expires']) && $_SESSION['dachi_expires'] < time())
			return false;

		return true;
	}
632349
public function needsUpdate()
    {
        $new = $this->getContent();
        $old = $this->getFileContent();

        $normalize = function($content) {
            return str_replace("\r\n", "\n", $content);
        };

        return $normalize($new) !== $normalize($old);
    }
355146
public function needsReload()
    {
        if ($this->reload) {
            return true;
        }

        // will reload tld list if timestamp of cache file is outdated
        if (time() - $this->tldList['timestamp'] > $this->cacheTime) {
            return true;
        }

        // will reload tld list if changes to Additional.php have been made
        if ($this->tldList['timestamp'] < filemtime(__DIR__ .'/Additional.php')) {
            return true;
        }

        return false;
    }
684260
protected function isExpired()
    {
        if (! $this->filesystem->exists($this->cached)) {
            return true;
        }

        $lastModified = $this->filesystem->lastModified($this->file->getPath());

        return $lastModified >= $this->filesystem->lastModified($this->cached);
    }