no unsafe optional chaining typescript