Imbo\Storage\S3::imageExists PHP Method

imageExists() public method

public imageExists ( $user, $imageIdentifier )
    public function imageExists($user, $imageIdentifier)
    {
        try {
            $this->getClient()->headObject(['Bucket' => $this->params['bucket'], 'Key' => $this->getImagePath($user, $imageIdentifier)]);
        } catch (NoSuchKeyException $e) {
            return false;
        }
        return true;
    }