make routeObj function checks consistent and non-erroring
Merge pull request #16 from telepharm/consistent-func-checks

make routeObj function checks consistent and non-erroring