function delTimer(ArrayObject $topics, $id) { $t = $topics[$id]; if (isset($t->timer)) { $this->timer->clearTimeout($t->timer); unset($t->timer); } }