Basically this: https://github.com/Sv443/JokeAPI/blob/version/2.4.0/src/exists.js
fs.exists() was deprecated because its bevahior differed from that of other async Node.js functions. This feature would re-implement fs.exists() by only using the recommended fs.access() and returning the same value as fs.exists() did, a boolean. Additionally, this function uses path.resolve() as an additional measure.