setRequired helper