It would be better to just parse the version to a `SemVer` object here, if it isn't already, and then check `ver.prerelease.length` to see if it has any prerelease members.