Revert "Remove unnecessary exists call."

This reverts commit 0d034b3d55737e36e09414831a1635c1fe7657ee.
Remove unnecessary fs.exists call.