build: collapse two checks into a single one (NFC)
build: collapse two checks into a single one (NFC)

Merge two cases into a single case rather than keeping them separate.
Additionally check the condition early rather than perform the action
and then revert it.  NFC.

xedin/swift,jmgc/swift,hooman/swift,amraboelela/swift,tkremenek/swift,allevato/swift,karwa/swift,airspeedswift/swift,xwu/swift,gregomni/swift,hooman/swift,stephentyrone/swift,austinzheng/swift,roambotics/swift,nathawes/swift,xedin/swift,xwu/swift,aschwaighofer/swift,brentdax/swift,ahoppen/swift,devincoughlin/swift,shahmishal/swift,airspeedswift/swift,jckarter/swift,practicalswift/swift,ahoppen/swift,karwa/swift,allevato/swift,atrick/swift,nathawes/swift,karwa/swift,gribozavr/swift,parkera/swift,karwa/swift,austinzheng/swift,glessard/swift,stephentyrone/swift,CodaFi/swift,xedin/swift,austinzheng/swift,roambotics/swift,jckarter/swift,tkremenek/swift,harlanhaskins/swift,parkera/swift,shajrawi/swift,atrick/swift,tkremenek/swift,lorentey/swift,sschiau/swift,sschiau/swift,austinzheng/swift,harlanhaskins/swift,shajrawi/swift,jckarter/swift,austinzheng/swift,apple/swift,gribozavr/swift,benlangmuir/swift,hooman/swift,stephentyrone/swift,atrick/swift,jmgc/swift,amraboelela/swift,alblue/swift,brentdax/swift,gregomni/swift,aschwaighofer/swift,alblue/swift,sschiau/swift,karwa/swift,alblue/swift,shajrawi/swift,hooman/swift,ahoppen/swift,roambotics/swift,practicalswift/swift,CodaFi/swift,xedin/swift,gribozavr/swift,benlangmuir/swift,CodaFi/swift,tkremenek/swift,practicalswift/swift,atrick/swift,atrick/swift,harlanhaskins/swift,devincoughlin/swift,tkremenek/swift,brentdax/swift,sschiau/swift,glessard/swift,xwu/swift,airspeedswift/swift,parkera/swift,devincoughlin/swift,alblue/swift,practicalswift/swift,nathawes/swift,parkera/swift,sschiau/swift,JGiola/swift,rudkx/swift,brentdax/swift,jmgc/swift,benlangmuir/swift,brentdax/swift,gregomni/swift,xwu/swift,apple/swift,amraboelela/swift,danielmartin/swift,harlanhaskins/swift,jckarter/swift,airspeedswift/swift,tkremenek/swift,parkera/swift,practicalswift/swift,shahmishal/swift,CodaFi/swift,danielmartin/swift,shajrawi/swift,hooman/swift,lorentey/swift,xedin/swift,nathawes/swift,CodaFi/swift,tkremenek/swift,xwu/swift,gregomni/swift,nathawes/swift,atrick/swift,shahmishal/swift,ahoppen/swift,alblue/swift,aschwaighofer/swift,sschiau/swift,allevato/swift,JGiola/swift,apple/swift,rudkx/swift,roambotics/swift,lorentey/swift,allevato/swift,devincoughlin/swift,benlangmuir/swift,xwu/swift,shahmishal/swift,rudkx/swift,danielmartin/swift,karwa/swift,allevato/swift,shajrawi/swift,apple/swift,glessard/swift,amraboelela/swift,parkera/swift,lorentey/swift,alblue/swift,jmgc/swift,gribozavr/swift,danielmartin/swift,practicalswift/swift,shahmishal/swift,airspeedswift/swift,aschwaighofer/swift,benlangmuir/swift,xedin/swift,brentdax/swift,practicalswift/swift,stephentyrone/swift,sschiau/swift,JGiola/swift,jckarter/swift,roambotics/swift,practicalswift/swift,parkera/swift,jmgc/swift,karwa/swift,gregomni/swift,harlanhaskins/swift,harlanhaskins/swift,rudkx/swift,alblue/swift,nathawes/swift,gribozavr/swift,aschwaighofer/swift,apple/swift,glessard/swift,stephentyrone/swift,hooman/swift,allevato/swift,devincoughlin/swift,shajrawi/swift,austinzheng/swift,shajrawi/swift,CodaFi/swift,JGiola/swift,amraboelela/swift,jckarter/swift,lorentey/swift,airspeedswift/swift,JGiola/swift,CodaFi/swift,aschwaighofer/swift,glessard/swift,gribozavr/swift,stephentyrone/swift,harlanhaskins/swift,apple/swift,rudkx/swift,JGiola/swift,parkera/swift,shahmishal/swift,austinzheng/swift,danielmartin/swift,gregomni/swift,stephentyrone/swift,gribozavr/swift,gribozavr/swift,shahmishal/swift,aschwaighofer/swift,lorentey/swift,benlangmuir/swift,danielmartin/swift,airspeedswift/swift,amraboelela/swift,lorentey/swift,nathawes/swift,jckarter/swift,sschiau/swift,shajrawi/swift,danielmartin/swift,shahmishal/swift,hooman/swift,devincoughlin/swift,roambotics/swift,xedin/swift,jmgc/swift,ahoppen/swift,brentdax/swift,devincoughlin/swift,devincoughlin/swift,karwa/swift,glessard/swift,xwu/swift,jmgc/swift,rudkx/swift,xedin/swift,allevato/swift,ahoppen/swift,amraboelela/swift,lorentey/swift