donations->getByReceiptId($receiptId); if (!$donation || $donation->id !== $donationId) { return $canViewReceipt; } return true; } }