small optimization to skip tree search when unnecessary in cpdf ls cv