Added code for empty category