protected function keyExistsByFingerprint($fingerprint)
    {
        foreach ($this->api()->getClient()->getSshKeys() as $existingKey) {
            if ($existingKey->fingerprint === $fingerprint) {
                return true;
            }
        }

        return false;
    }
protected function keyExistsByFingerprint($fingerprint)
    {
        foreach ($this->api()->getClient()->getSshKeys() as $existingKey) {
            if ($existingKey->fingerprint === $fingerprint) {
                return true;
            }
        }

        return false;
    }
protected function keyExistsByFingerprint ( $ fingerprint ) { foreach ( $ this -> api ( ) -> getClient ( ) -> getSshKeys ( ) as $ existingKey ) { if ( $ existingKey -> fingerprint === $ fingerprint ) { return true ; } } return false ; }
Check whether the SSH key already exists in the user's account.

@param string $fingerprint The public key fingerprint (as an MD5 hash).

@return bool
Check whether the SSH key already exists in the user s account .