     }
     
     private func setFont(font: UIFont?) {
-        if let font = font {
-            for label in labels {
-                label.font = font
-            }
+        guard let font = font else { return }
+        
+        for label in labels {
+            label.font = font
         }
         
         setNeedsDisplay()

        if labels.count > 0 {
            color = labels[0].textColor
            
            for i in 1..<labels.count {
                if labels[i].textColor != color {
                    return nil  // labels have different text colors; return nil
                }
            }
        }
        

        if labels.count > 0 {
            fnt = labels[0].font
            
            for i in 1..<labels.count where labels[i].font != fnt {
                return nil  // labels have different text colors; return nil
            }
        }
        
