I wanted to assign length in the if clause, and since i was a next of kin I declared them together. But i usually follow the same principle as you.