function checkAppExists() {
  Meteor.defer(function() {
    var app = Apps.find(FlowRouter.getParam('appId')).count();
    if (!app) FlowRouter.go('notFound', {object: 'app'});
  });
}
// sub is ready, and redirects to a not found page if it isn't
sub is ready, and redirects to a not found page if it isn't
sub is ready and redirects to a not found page if it isn ' t
function checkAppExists() {
  Meteor.defer(function() {
    var app = Apps.find(FlowRouter.getParam('appId')).count();
    if (!app) FlowRouter.go('notFound', {object: 'app'});
  });
}
function checkAppExists ( ) { Meteor . defer ( function ( ) { var app = Apps . find ( FlowRouter . getParam ( 'appId' ) ) . count ( ) ; if ( ! app ) FlowRouter . go ( 'notFound' , { object : 'app' } ) ; } ) ; }
sub is ready, and redirects to a not found page if it isn't
sub is ready and redirects to a not found page if it isn ' t