Style: use an explicit comparison `newRef != nil`