check routeObj before processing routing