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?
-e checks for any type of filesystem object; -f only checks for a regular file.