prevent empty list items from being added