Your comments suggest you need a method for version retrival, so use that instead of your conditional since it's more explicit and can remove the comment.