Moving phpversion checks into own class