Fixed bug that caused options not to be initialized correctly when a block was passed to certain menu items. Added function to check if any menu element has content.