then is completely optional in all if -sentence contexts. I hardly ever use it myself. I'd guess that most people don't use then in the consequent clause.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.