This if function was unreachable beforehand, modified the code to use it. amount2 > 0 && amount > 0
amount2 > 0 && amount > 0