Nice - maybe take this a step further: rename to 'valueOrDefault', move it to the top of the file, and use it in other places.