Check if file exists in the first place.