Update the menu function to not return the pages menu as a fallback if the menu doesn't exist or is empty