You could drop the `|| null` and check for IsUndefined() in C++ land.