That does work. It is just not as succinct.
I can understand the concern with future conflicts. To protect against that a check could wrap the creation of getnull so that, if it already exists, this code would not override it and a warning could be logged to leave tracks.