There is any function for check "menu is created"? Before call menu_destroy that would not get error. My current check:
PHP Code:
if(g_voting_menu != 0)
{
menu_destroy(g_voting_menu)
}
It's correct? I think better like:
PHP Code:
if(is_menu(g_voting_menu))
{
menu_destroy(g_voting_menu)
}
But there is "is_menu"-like function?