Fixed some syntax errors

defined() takes a string; $num wasn't initialized yet, no sanity check needed.
Merge pull request #10 from aphofstede/patch-1

Fixed some syntax errors