refactor(ponse) getPathName: add checkArgs