We should avoid such shortcut, at least in SDK code base, because contributors: I had experience in the past where people found them uneasy with such code. I would write something more readable like:
```js
if (panelBrowser)
  panelBrowser.contentWindow.removeEventListener(/*...*/);
windowNS(window).onWebPanelSidebarReady = null;
```