Remove 'then' from 'if' and prefer parentheses.
Kill useless 'else: id'.
Reduce repetition.