class CreditCardInstallment {

    public void setTermSelected(int termPosition) {
        this.termSelected = this.installmentTerms.size() == 0 ? 0 : this.installmentTerms.get(termPosition);
    }

}