strip empty arrays from results