Can change <code>typeof overlayHeader === "undefined"</code> to <code>!overlayHeader</code>