A better way to check AE2

It assumes the latest version is never both release and dev.
As the sorted "Versions" list is reversed so that the latest always is at index 0 it's enough with a simple "if else" to check if it's a devVersion or a relVersion and return the appropriate values.