Actually it is not necessary. Even this `if` is not necessary. This method is called only by the constructor, so no reason to worry about.