I think this function will be more useful if it takes an element (event.target) instead of an event. Code would then be:
```
return ($(element).closest("li").find("input").length > 0);
```