Issue 20310: Fixed falsy problem with valid menu check

First menu item wasn't working because the false check was excluding zero.