It's valid.
If your liver can't hold much glycogen, providing sugar into the evening and through the night, then adding some gentle energy will help.
Liver health should also be examined. Taurine can help. Increasing glycine. Perhaps NAC or glutathione is needed. Worth getting labs to evaluate why unable to sleep deeply through the night.
My liver function is pretty good, so I find a small snack around 7PM, maybe a small glass of milk with honey, is plenty.