Issue #3487449 by tom konda: Prefer to replace some of typeof obj !== 'undefined' with optional chaining
mentioned in commit f1139711