Add jsdoc for _checkOnDirExists