         webViewContainer.snp_remakeConstraints { make in
             make.left.right.equalTo(self.view)
 
-            if !self.readerModeBar.hidden {
-                make.top.equalTo(self.readerModeBar.snp_bottom)
+            if let readerModeBarBottom = readerModeBar?.snp_bottom {
+                make.top.equalTo(readerModeBarBottom)
             } else {
                 make.top.equalTo(self.header.snp_bottom)
             }

}

class BrowserViewController: UIViewController {
    private var urlBar: URLBarView!
    private var readerModeBar: ReaderModeBarView!
    private var statusBarOverlay: UIView!
    private var toolbar: BrowserToolbar?
    private var homePanelController: HomePanelViewController?

        }
        header.setNeedsUpdateConstraints()

        readerModeBar?.snp_remakeConstraints { make in
            self.readerConstraint = make.top.equalTo(self.header.snp_bottom).constraint
            make.height.equalTo(AppConstants.ToolbarHeight)
            make.leading.trailing.equalTo(self.view)
