public function getActiveStart($page) { if (!property_exists($page, 'active_from')) { return new \DateTime(); } return new \DateTime($page->active_from); }