Update the version check to use the already provided versionArray instead of splitting a string