Returns a default value if the provided value is null or undefined
The type of the value
The default value to return
Optional
The value to check (optional)
The value if it exists, otherwise the default value
Returns a default value if the provided value is null or undefined