This may be the best way for checking if a file exists or not.