static function checkThisRequiredWhenThat($value, $params, $helper) {
    if (self::checkPath($params['that'], ['required' => TRUE, 'in' => (array) $params['is']], $helper)) {
      $params = array_merge(['message' => 'required when ' . $params['that'] . ' in (' . implode(', ', (array) $params['is']) . ')'], $params);
      
      return self::checkNotBlank($value, $params, $helper);
    }

    return $value;
  }