Why pass a default and then later check for it rather than checking whether the property/key is present first?