PHP Optimizer: moved a tiny bit of code outside of huge method. No functional change intended