title: How to know if route exists before i do transition
body: <p>I want re-transition my application when route not found, in my application route </p>
  
  <pre><code>export default Ember.Route.extend({
    redirect: function(model, transition) {
      if (transition.targetName == "not-found") {
        var newPath = transition.intent.url  //do some logic
        this.transitionTo(newpath);
      }
    }
  });
  </code></pre>
  
  <p><strong>Question</strong> How to check if <code>newPath</code> exist before I do <code>this.transitionTo(newPath);</code></p>
  
  <p>In API I found only private <code>hasRoute</code></p>
  
  <p><strong>UPDATE</strong> for better understand the problem</p>
  
  <p>For example i have routes:</p>
  
  <pre><code>Router.map(function() {
    this.route('login'),
    this.route('not-found', { path: '/*wildcard' });
  });
  </code></pre>
  
  <p>When user request <code>URI</code> for example <code>en/login</code> ember load <code>not-found</code> route (default as Wildcard). Real path is <code>login</code>.</p>
  
  <p>I want remove <code>en</code> and try to find out if <code>login</code> route exist in my application, otherwise it will be real "not-found" page</p>
  
  <p><code>en/login</code> == <code>login</code> and it's valid, will redirect to login</p>
  
  <p><code>en/abc</code> == <code>abc</code> this route does not exist, <code>not-found</code> continue execution</p>