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

<bitchy comment about PHP being horrible />