Returns a value if it exists, otherwise returns a default value
The type of the value
Configuration object
The default value to return if value is null/undefined
Optional
The value to check (optional)
The value if it exists, otherwise the default value
Returns a value if it exists, otherwise returns a default value