check_valid_file does not exist on all-empty-files