For the second sentence, I would just say:

`If no value is set, return the default value (which will be null for optional settings).`