Wrap the subscribe function in an !empty(). Dont subscribe to empty categories.