Fixed some syntax errors

defined() takes a string; $num wasn't initialized yet, no sanity check needed.