Inserting IR sensor code into existing project

Do I place the new IF state prior to the button counts? And do I tell all the LEDs to go HIGH (Off) in the “Else”?

  int statusSensor = digitalRead (IRSensor);
  
  if (statusSensor == 1)
    digitalWrite(ledPinredTop, LOW); 
    digitalWrite(ledPinredBtm, LOW);               digitalWrite(ledpingreenBtm, HIGH);
     digitalWrite(ledPinyellowTop, HIGH);
     digitalWrite(ledPingreenTop, HIGH); 

  }
  
  else
  {
    digitalWrite….???
  }
  
}

if (buttonPushCounter == 1)……