public static function check($uri)
  {
    try
    {
      $uri = new self(strval($uri));
    }
    catch(\Exception $e)
    {
      return FALSE;
    }

    return $uri->valid();
  }
public static function check($uri)
  {
    try
    {
      $uri = new self(strval($uri));
    }
    catch(\Exception $e)
    {
      return FALSE;
    }

    return $uri->valid();
  }
public static function check ( $ uri ) { try { $ uri = new self ( strval ( $ uri ) ) ; } catch ( \ Exception $ e ) { return FALSE ; } return $ uri -> valid ( ) ; }
Returns TRUE if a given URI is valid.

@param  string $uri
@return boolean
Returns TRUE if a given URI is valid .