Remove checks for undefined variables that cannot be undefined

The `|| 0` forces the value to be 0 if they were undefined