added a null check here to make sure `this.names` will not be null - is that what you meant with the comment?