 
         if fmod(scrollView.contentOffset.x, scrollView.frame.size.width) == 0.0 {
             if self.visiblePageControl {
-                if self.pageControl != nil {
-                    self.pageControl.currentPage = self.currentPage
-                }
+                self.pageControl.currentPage = self.currentPage
             }
         }
     }

    public var visiblePageControl = true
    public var visibleCloseButton = true
    public var index = 0
    
    public init(imageURLs:Array<NSURL>) {
        super.init(nibName: nil, bundle: nil)


    var scrollView:UIScrollView!
    var imageURLs:Array<NSURL>?
    var backgroundView:UIView!
    var effectView:UIVisualEffectView!
    var closeButton:UIButton?
