nit: I guess you can simply set it without the if-block?