because you can't put the return value of a method into empty(). PHP is dumb.