Avoid doing extra work when filtered results is zero