Clean code, when adding a list, clear the list before updating it