     
     /** The absolute translation to make on the content view */
     private func translateContentView(inXDimension x: CGFloat, animated: Bool = false) {
-        
-        print(x)
-        
+
         // Do not translate if the translation is at the maximum
         guard abs(x) <= self.maxAbsoluteContentTranslation else {return}
         
         // Do not translate, if there is no menu
+        if x > 0 && self.leftMenuController == nil {
+            self.hideMenu(animated: false)
+            return
+        }
+        
+        if x < 0 && self.rightMenuController == nil {
+            self.hideMenu(animated: false)
+            return
+        }
         
         let relativeTranslation = x / maxAbsoluteContentTranslation
         

    /** The width of the menu container as a percentage of the screen */
    public var menuWidth: CGFloat = 0.8
    
    // MARK: Private properties
    
    private var maxAbsoluteContentTranslation: CGFloat {
        return UIScreen.mainScreen().bounds.width * self.menuWidth
    }
    
    /** The maximum angle (in degrees) the door menu can open */
    private let menuTilt: CGFloat = 45
    
    /** Content translation at the beggining of the pan gesture */
    private var initialContentTranslation: CGFloat = 0
    
    private let minScaleFactor: CGFloat = 0.8
    
    private var animating = false
    
    private let animationDuration: NSTimeInterval = 0.4
    
    private var isLeftMenuShown: Bool {
        
        return self.contentViewCenterConstraint.constant == self.maxAbsoluteContentTranslation
        
    }
    
    private var isRightMenuShown: Bool {
        
        return self.contentViewCenterConstraint.constant == -self.maxAbsoluteContentTranslation
        
    }
    
    public var contentController: UIViewController?
    public var leftMenuController: UIViewController?
    public var rightMenuController: UIViewController?
    
    // MARK: Initializers
    

        
        if animated {
            
            UIView.animateWithDuration(self.menuAnimationDuration, delay: 0, options: self.menuAnimationOptions, animations: {
                
                self.contentContainerView.layer.transform = transform;
                self.view.layoutSubviews()
                
                }, completion: nil)
            
        } else {
            
