Return when file is not null.