public function imageExists(Image $client, $hash, $organizationName = '')
    {
        try {
            $sourceImage = $client->getSourceImage($hash, $organizationName);

            return $sourceImage instanceof SourceImage && $sourceImage->hash === $hash;
        } catch (ClientException $e) {
            if (404 === $e->getCode()) {
                return false;
            }

            throw $e;
        }
    }
public function imageExists(Image $client, $hash, $organizationName = '')
    {
        try {
            $sourceImage = $client->getSourceImage($hash, $organizationName);

            return $sourceImage instanceof SourceImage && $sourceImage->hash === $hash;
        } catch (ClientException $e) {
            if (404 === $e->getCode()) {
                return false;
            }

            throw $e;
        }
    }
public function imageExists ( Image $ client , $ hash , $ organizationName = '' ) { try { $ sourceImage = $ client -> getSourceImage ( $ hash , $ organizationName ) ; return $ sourceImage instanceof SourceImage && $ sourceImage -> hash === $ hash ; } catch ( ClientException $ e ) { if ( 404 === $ e -> getCode ( ) ) { return false ; } throw $ e ; } }
Checks if the specified image exists in the organization.

@param Image  $client
@param string $hash
@param string $organizationName

@return bool
Checks if the specified image exists in the organization .