shouldn't this be ``!$this->registered`` ?