Guard against empty files