Why is this sentinel value check happening now instead of in the previous if(RESILIENT) block? Extra branches make me a sad panda.