public function isBucketExist($bucketId)
    {
        $this->ensureAuthorized();
        $response = $this->client->b2ListBuckets($this->apiURL, $this->token);
        if ($response->isOk()) {
            $buckets = $response->get('buckets');
            if (!is_null($buckets)) {
                foreach ($buckets as $bucket) {
                    if ($bucketId == $bucket['bucketId']) {
                        return true;
                    }
                }
            }
        }

        return false;
    }