if (
    value !== undefined &&
    typeof value !== "boolean" &&
    typeof value !== "string"
  ) {