How Can I Determine if a List Item Contains a Child List?

How Can I Determine if a List Item Contains a Child List?

I have an unordered list with many list items several levels deep, some of which contain nested unordered lists. How can I determine which individual list items contain nested lists and attach click events to only those list items? For example:
  1. <ul>
  2. <li>level 1
  3. <ul>
  4. <li>level 1-1</li>
  5. <li>level 1-2
  6. <ul>
  7. <li>level 1-2-1</li>
  8. <li>level 1-2-2</li>
  9. <li>level 1-2-3</li>
  10. <li>level 1-2-4</li>
  11. <li>level 1-2-5</li>
  12. </ul>
  13. </li>
  14. <li>level 1-3</li>
  15. </ul>
  16. </li>
  17. </ul>
Level 1 and Level 1-2 should have the click event bound to them while all the other list items don't have anything bound to them.

I assumed that I would loop over all the list items using each() and :has or .children(), but I couldn't figure out how to test if the list item I was iterating on contain a sublist. Any assistance is appreciated.