check that features is not empty b4 creating results file, prevents making empty files