You are correct, and there is no code in the world that will tell you the path exists if it doesn't. And, it doesn't exist for a particular machine if said machine is not connected to the network with the drive mapped and/or available to it.