public function setFormFieldRequired($array, $fieldName, $isRequired = false)
    {
        if (!empty($array['input_filter'])) {
            foreach ($array['input_filter'] as $keyElement => $element) {
                if ($keyElement == $fieldName) {
                    $array['input_filter'][$keyElement]['required'] = $isRequired;
                }
            }
        }

        return $array;
    }