There are two switches for the if condition which check for a file: -e and -f.
if
-e
-f
What is the difference between those two?
$ man bash -e file True if file exists. -f file True if file exists and is a regular file.
A regular file is something that isn't a directory, symlink, socket, device, etc.