You forgot a return statement. Add <code>return $isempty;</code> after
you close the else block.
Because this function simply returns the value of a conditional test,
its possible to write this function with only one line in the function
body:
<pre>function checkEmpty($variable) {
return ($variable == NULL || $variable == '')
}</pre>