Yeah subregst is probably a better idea.  My other idea was $version as a hash so you could just check $version['version'] but that's even uglier.  I'll go with subregst as I hate the alternatives more! :)