```\nfunction byteLengthWithFallback(ShortString value, string storage store) internal view returns (uint256) {\n    if (ShortString.unwrap(value) != _FALLBACK_SENTINEL) {\n        return byteLength(value);\n    } else {\n        return bytes(store).length;\n    }\n}\n```\n