/** * Checks whether we are a date record and have a topic. * * @return bool TRUE if we are a date record and have a topic, * FALSE otherwise */ private function isTopicOkay() { return $this->isEventDate() && $this->topic && $this->topic->isOk(); }