Added function to tell if the navigation is open