Separating input values into rows in the dataset

Thank you so much! This works. Is there a way to not insert into dataset if a value is null? For example if nothing was entered in #input5