Why is it necessary to create empty objects here? Is 5 a hard limit? What happens if someone creates a new dashboard, do we always need create empty dummy legend strings?