public function isExist($bucketName) { $r = $this->getS3()->getApiHandler()->headBucket($bucketName); return $r == 200 || $r == 403; }