isValidFilePath added