Refactor getVersion to call validateVersion
Refactor getVersion to call validateVersion

It makes more sense to validate the cersion inside the getVersion
function. To avoid duplicating the function call, the requires are
checked in a foreach.

PhilippBaschke/acf-pro-installer,igniteonline/wpm-pro-installer