Using coalesce operator in scripts?

Is there anything similar to a coalesce operator in the OH3 ECMA scripting? This would be very helpful handling nulls.

For example the JavaScript nullish coalescing operator lets you handle nulls without errors and extra lines of code. var myVar1 = itemRegistry.getItem('some_item').getState() ?? 0 would initialize the variable to the item state, or to zero if the item state is null.

Anything similar we can use here?