When a template is constructed, we should init data as an empty array to prevent extraction issues.