TomorrowToday/querypath — comment on commit 04cc87a6fa4c40335a15f51e272a429e223cc445
File: src/QueryPath/Extension/QPTPL.php line 226
By technosophos:

Branch takes a selector, so you could do $qp->branch($k)->count() > 0. I don't think that'll make a performance difference, though.