I have almost 10 year old now who used to do the very early morning barf thing when he was a youngster.
Never anything but some foamy bile. Solved the problem by giving him a large milkbone at bedtime. If we forgot to give it to him sure enough he would barf. He eventually outgrew it but still insists on a cookie before bed but now just gets a little one.