Maybe there is a way to check it first and provide then a default version value.
I'm not familiar with the ReflectionExtension Class but I think there is should be a fallback when the extension wasn't found.
In this case, we could set $intlVersion to '0'. So the '0' means there is no intl extension, isn't this correct?