Don't check the length of the join result data

The for loops will take care about what happens with the final result.
If a query doesn't bring any documents means that the result is just an
empty array.