Why not just check explicitly that it exists with `file.exists`? Race conditions?