ALSO check if the input file exists