No, this is the beauty of jQuery.
You can create a wrapper function
function myjQuery() { var res = $.apply(this, arguments); if (!res.size()) { throw new Error("No elements matched :("); }; return res; }; myjQuery('input').each();
This will not mask empty sets returned with find() or filter() and the like, but humm ...
Matt source share