group.setVisible() not working?

Hi,

I create a group like below then try to call setVisible on it after i add a couple of sprites and i keep getting TypeError: this.group.setVisible is not a function. Am i using this correcty? group.toggleVisible() works but does not suit my needs.

Thanks.

this.group = scene.add.group();
this.group.setVisible(false);

Fixed it by updating phaser