Here is a suggestion on how getVariableCall can be incorporated into existing command with backwards capability and also address original ticket idea:
getVariable ["var", {123}] // Return {123} code if "var" is not found getVariable ["var", {123}, false] // Call {123} if "var" is not found and just return it getVariable ["var", {123}, true] // Call {123} if "var" is not found, write into "var" and return it
Perhaps it can also work with non-code 2nd argument and true 3rd argument. You'll need code returning code if you'll want to default set the code though.