Handle nil code in destructure. Eliminate unnecessary var.