removed unnecessary comparison

If the code come to this point we really know that `val !== 0` because of previously failure comparison `val === 0`.