         var isHorizontalLayout = false
         // TODO: Check all titles.
         if button2Title == nil && button3Title == nil {
-            if let button1Title = button1Title
+            if let button1Title = button1Title {
                 // TODO: Use total width of characters instead of count.
-                where displayedButton0Title.characters.count <= maxHorizontalButtonTitleCharacterCount
+                if displayedButton0Title.characters.count <= maxHorizontalButtonTitleCharacterCount
                     && button1Title.characters.count <= maxHorizontalButtonTitleCharacterCount
-            {
-                isHorizontalLayout = true
+                {
+                    isHorizontalLayout = true
+                }
             }
         }
         return isHorizontalLayout

        hideUnused()
    }
    
}
        }
        messageLabel?.activateOnlyConstraintsWithFirstVisibleInViews(buttons.reverse())
        if let horizontalButtonsLayoutConstraints = horizontalButtonsLayoutConstraints,
            let verticalButtonsLayoutConstraints = verticalButtonsLayoutConstraints
        {
            if isHorizontalLayout {
                NSLayoutConstraint.activateConstraints(horizontalButtonsLayoutConstraints)
                NSLayoutConstraint.deactivateConstraints(verticalButtonsLayoutConstraints)
