code: public static function check($uri)
      {
          try {
              $uri = new self(strval($uri));
          } catch (Ts3Exception $e) {
              return false;
          }
  
          return $uri->valid();
      }
docs: Returns TRUE if a given URI is valid.
  
  @param  string $uri
  @return boolean