{% set req = required is defined and required ? 'required' : '' %}