It is an entirely different matter here because they might actually be falsy in the case of 0. I would rather check for the type `this.r = typeof(r) == 'number' ? r : 0;` instead