This check is critical and needs to be perserved.  You have to verify that the count of items in newListOrder and newFormOrder equals the count of elements, otherwise really bad things can happen, like element lists being erased and stuff.