Having slight problem with nested UL LI structures ---

Having slight problem with nested UL LI structures ---

Hello All.

I am facing slight problem with a nested UL LI UL structure. See the fiddle:  http://jsfiddle.net/bw2zr3qj/18/

As you can see, I'm trying to check which parent li has children ul elements with subsequent li elements in it and if there is, show those elements and show an optional pop alert. For example Wine has a number of children elements, but Vermouth and Tequila don't. If you understand what I'm trying to say. If you click Wine, the different types of wine are shown but not so for Vermouth, Tequila or Liqueur

The function VerticalFilter here is not working. Seems the "has" logic I've written is erroneous. I require some assistance with this implementation. Kindly help.

Many Thanks.