public function unsub($obj) { $this->detach($obj); if ($this->count() === 0) { if (($func = $this->deactCb) !== null) { $func($this); } } return $this; }