The well-known approach for checking whether path exists, in Unix, is: “if [ -e $path ]” condition. However, contrary to popular belief, “-e” does not always work. The “-e” check works for folders, files etc with one exception: if there’s a broken symlink on the path, it won’t recognize that. Which makes sense: broken symlink...