Add keyword 'then' at end of if condition

Related conversation: Are ``then`` and ``of`` deprecated in crystal? - #4 by Devonte