Allow empty groups array to be passed