Fix support .0 releases.

[0 is defined as empty](http://php.net/manual/en/function.empty.php#refsect1-function.empty-returnvalues) so releases like 7.x-1.0 would cause an exception to be thrown.