why not simply if (!$this->host) ? if the host is false, its not better.