I seem to repeat this a lot at the end of my functions: https://gist.github.com/luxbock/76d591bb712b363c2307d5ed60b5923b
is there a more idiomatic way to write it?