 
     return if Meteor.isServer
 
-    checkArgument routeName
+    checkRouteOrPath routeName
 
     if ir
       currentRouteName = ir.Router.current()?.route?.getName?()


    return if Meteor.isServer

    checkArgument path

    if ir
      controller = ir.Router.current()

fr = ir = null

checkRouteOrPath = (arg) ->
  try
    check arg, Match.OneOf RegExp, String
  catch error
    throw new Error errorMessages.invalidRouteNameArgument

checkRouterPackages = ->
  fr = Package['kadira:flow-router'] ? Package['meteorhacks:flow-router']
