Reverse order of checks from cheapest to most expensive
Reverse order of checks from cheapest to most expensive

This will avoid running version_compare in some cases due to short cut
and operation in the return statement

composer/semver