protected function fieldInList($field, array $list) : bool {
        $result = in_array($field, $list);
        if (!$result && !$this->isFieldCaseSensitive()) {
            $result = in_array(strtolower($field), $list);
        }
        return $result;
    }