I also tried to get ChatGPT to write me functioning code when I gave it broken code. Hoping it would fix the bug. since fs.promises.exists doesn't exist, I was hoping it would use the non promises version and not use a try/catch.