Refactor the file exists method to be used for checking any file