Hiding chat widget unless logged in?

Is it possible to completely hide the chat widget from the bottom right hand corner of the page unless a user is signed in.

At the moment the chat box appears when someone views the site, regardless if they are signed in.

I would like the widget only to appear as soon as a user has signed up for an account or signed into their account.