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;
    }