     }
     
     func clear() {
+        guard let bitmapCache = bitmapCache else { return }
+        
         bitmapCache.reset()
     }
 }

    
    fileprivate let ImageFormatFrameDevice = "com.brave.imageFormatFrameDevice"
    
    fileprivate var bitmapCache: FICImageCache!
    
    fileprivate var portraitSize: CGSize {
        get {

    }
    
    func remove(_ url: URL, type: ImageCacheEntityType) {
        guard let bitmapCache = bitmapCache else { return }
        
        let entity = ImageEntity(url: url)
        let format = type.rawValue
        if bitmapCache.imageExists(for: entity, withFormatName: format) {
