Check if the file exists before reading it. Fix #25