You are right. This code has become redundant after I have changed the incoming empty module or key names from "undefined" to emptry string in the form.

I've pushed the change to the branch.

Arthur