Remove unused method, move php version checking to the constructor of Application