Splitting check of the PHP version to its own method