Check existence of join before iterating it.