A primitive `int` will never be null, you could remove this check.