This can be changed to `if (PDFView.toolbarClosed)`.