for #7, prevent empty lists