$guard = ($vars->a_payment) + (0) * $price; if ($bless >= $guard) { $amount = $bless; }
Why not to write just 1 line?! $amount = max($bless, $vars->a_payment);