#5 check the `currentRequest` object before get the `path`