I would prefer not to have this kind of assignment. I believe that it doesn't help the readability of the code. I could have this check in the template though.