             
         ]
         
-        if let raw = dict[code], icon = FontAwesome(rawValue: raw)  {
-            return self.fontAwesomeIconWithName(icon)
+        if let raw = dict[code] {
+            if let icon = FontAwesome(rawValue: raw)  {
+                return self.fontAwesomeIconWithName(icon)
+            }
         }
         
         return nil

}

public extension UIImage {
    public static func fontAwesomeIconWithName(name: FontAwesome, textColor: UIColor, size: CGSize) -> UIImage {
        let paragraph = NSMutableParagraphStyle()
        paragraph.lineBreakMode = NSLineBreakMode.ByWordWrapping
        paragraph.alignment = .Center

        var error: Unmanaged<CFError>?
        if !CTFontManagerRegisterGraphicsFont(font, &error) {
            let errorDescription: CFStringRef = CFErrorCopyDescription(error!.takeUnretainedValue())
            let nsError = error!.takeUnretainedValue() as CFError
            NSException(name: NSInternalInconsistencyException, reason: errorDescription as String, userInfo: [NSUnderlyingErrorKey: nsError]).raise()
        }
    }
