Force $version to be a string for empty() check

<bitchy comment about PHP being horrible />
Merge pull request #6 from aschroder/patch-1

Force $version to be a string for empty() check.

<paragraph starting to defend php but realizing that despite its utility it is still is sort of awful />