public function hasBlockEvents() { $return = false; foreach ($this->activeEvents as $event) { if ($event instanceof Activity\EventInterface) { $return = true; } } return $return; }