first_present(value, default) that returns value if it is not <code>None</code>, otherwise returns default. This mirrors a common config-loading pattern where a setting may be unset.first_present(None, 10)
10
value is None, so default is used.
first_present(0, 10)
0
0 is not None, so it is kept (even though it is falsy).
Check explicitly with `value is None`.
A one-line conditional expression works well here.