Accoriding to documentation exists:
Test whether this query is non-empty.
with is the same as length > 0. It cosmetic change, if you want i can remove it.