Add missing if from previous commit to v25-v27