1 verses of the Young's Literal Translation have both "if" and "purpose".
Acts 8:22 reform, therefore, from this thy wickedness, and beseech God, if then the purpose of thy heart may be forgiven thee,
In other translations: KJV ASV DRC