prevent deleting menu items unless empty