Like the suggestion to move it in the model :-)

And about `===` - if I remember correctly it's the equality method that's defined for the equality in case of a `case` statement but I'd have to look that up again. == should be good.