Changed location of else for file existence