bugfix: $x = 0; empty($x) ===  true

Replaced empty with strlen