src/Verify/Verification.php
public function check($code, $ip = null)
    {
        try {
            $this->useClient()->check($this, $code, $ip);
            return true;
        } catch(RequestException $e) {
            if($e->getCode() == 16 || $e->getCode() == 17){
                return false;
            }

            throw $e;
        }
    }
public function check($code, $ip = null)
    {
        try {
            $this->useClient()->check($this, $code, $ip);
            return true;
        } catch(RequestException $e) {
            if($e->getCode() == 16 || $e->getCode() == 17){
                return false;
            }

            throw $e;
        }
    }
public function check ( $ code , $ ip = null ) { try { $ this -> useClient ( ) -> check ( $ this , $ code , $ ip ) ; return true ; } catch ( RequestException $ e ) { if ( $ e -> getCode ( ) == 16 || $ e -> getCode ( ) == 17 ) { return false ; } throw $ e ; } }
Check if the code is correct. Unlike the method it proxies, an invalid code does not throw an exception.

@uses \Nexmo\Verify\Client::check()
@param string $code Numeric code provided by the user.
@param null|string $ip IP address to be used for the verification.
@return bool Code is valid.
@throws RequestException
Check if the code is correct . Unlike the method it proxies an invalid code does not throw an exception .