Add explicit check for version not being an integer.