simplify if/else, use rc php-semver release