JavaScript optional chaining (?.) to the rescue

JavaScript optional chaining (?.) to the rescue