Fix $isInstallmentPaid and $isInstallmentPaidEarly