//get the submitted values in an array
$params = $this->controller->exportValues($this->_name);
- $actionTypeOption = CRM_Utils_Array::value('actionTypeOption', $params, NULL);
+ $actionTypeOption = $params['actionTypeOption'] ?? NULL;
// If remove option has been selected set new privacy value to "false"
$privacyValueNew = empty($actionTypeOption);