Returns a value if it exists, otherwise executes a compensation function
The type of the value
Configuration object
Function to execute if value doesn't exist
Optional
The value to check (optional)
The value if it exists, otherwise the result of the compensation function
Returns a value if it exists, otherwise executes a compensation function