Convert win.DOMException to boolean