         let beforeSize = contentSize
         super.layoutSubviews()
         
-        guard pagingContents.count > 0 else {
-            return
-        }
-        
-        if beforeSize != contentSize {
-            contentSize = CGSize(width: floor(contentSize.width), height: floor(contentSize.height))
-            let offsetX = contentOffsetXAtPosition(.Center)
-            setContentOffset(CGPoint(x: offsetX, y: contentOffset.y), animated: false)
-        } else {
-            infiniteIfNeeded()
-        }
-        
-        guard dataSource != nil else {
-            return
-        }
-        
-        changeDisplayStatusForCell()
+        if pagingContents.count > 0 {
+            if beforeSize != contentSize {
+                contentSize = CGSize(width: floor(contentSize.width), height: floor(contentSize.height))
+                let offsetX = contentOffsetXAtPosition(.Center)
+                setContentOffset(CGPoint(x: offsetX, y: contentOffset.y), animated: false)
+            } else {
+                infiniteIfNeeded()
+            }
+            
+            if dataSource != nil {
+                changeDisplayStatusForCell()
+            }
+        }
     }
     
     func infiniteIfNeeded() {

        
        if needsReload {
            needsReload = false
            setupPagingContentView()
            reloadContentView()
        }

    /// Inset of content relative to size of PagingView. Value of two times than of pagingInset to set for the left and right of contentInset.
    public var pagingInset: UInt = 0
    
    func contentViewAtPosition(position: Position) -> ContentView {
        return pagingContents[position.numberOfPages()]
    }
