How to hide empty category in left menu

Hi admin,
Please instruct me how to hide “Discussions” & “Channels” in left menu when it’s empty (no any conversations here). Please see the capture below:
empty
Thank you.