/** * @param DataObject $record * * @return bool */ protected function hasReviewSchedule(DataObject $record) { if (!$record->obj("NextReviewDate")->exists()) { return false; } $options = $record->getOptions(); if ($options->OwnerGroups()->count() == 0 && $options->OwnerUsers()->count() == 0) { return false; } return true; }