working on doesPathExist