Initial refactoring to accurately implement PHP addition operator