Oh geez, now I see the issue. Should be `if (empty($this->class))` correct?