not if is an optional parameter at the end. the path should not be optional, so its not optimal. but using a setter is makes it optional as well.