protected function checkObject(TransferInformation $object) { /** @var TransferCustodianQuestionAnswer $questionnaireAnswer */ foreach ($object->getQuestionnaireAnswers() as $questionnaireAnswer) { $question = $questionnaireAnswer->getQuestion(); $value = (bool) $questionnaireAnswer->getValue(); if ($value !== $question->getDocusignEligibleAnswer()) { return false; } } return true; }