original_string: public static function routeExists($route, sfContext $context)
      {
          try {
              if ($route{0} == '@') {
                  $context->getRouting()->generate(substr($route, 1));
              }
              return true;
          } catch (Exception $e) {
              return false;
          }
      }
code: public static function routeExists($route, sfContext $context)
      {
          try {
              if ($route{0} == '@') {
                  $context->getRouting()->generate(substr($route, 1));
              }
              return true;
          } catch (Exception $e) {
              return false;
          }
      }
code_tokens: public static function routeExists ( $ route , sfContext $ context ) { try { if ( $ route { 0 } == '@' ) { $ context -> getRouting ( ) -> generate ( substr ( $ route , 1 ) ) ; } return true ; } catch ( Exception $ e ) { return false ; } }
docstring: Check if the supplied route exists
  
  @param string $route
  @param sfContext $context
  
  @return boolean
docstring_tokens: Check if the supplied route exists