protected function validateStrlen(string $field, ?string $val, int $min, int $max, bool $required = true)
    {
        if ($val !== null) {
            $strlen = strlen($val);
            $result = !($strlen < $min || $strlen > $max);
        } else {
            $result = !$required;
        }

        if ($result) {
            $this->clearError($field, "length");
        } else {
            $this->setError($field, "length", [
                "title" => "Length of `$field` Out of Bounds",
                "detail" => "Field `$field` must be between $min and $max characters long."
            ]);
        }
        return $result;
    }