kept the wrong logic for
detecting existing publish trees