protected function checkObject(TransferInformation $object) { if (!is_object($object->getTransferCustodian())) { return false; } return true; }