Panel would crash if no groups were added. Added a check for this