Genesis 13:13 & Genesis 18:20-21 certainly precede the 19th chapter.
I agree, God knew all about them well before ch 19, probably the angels just went to get verification and to help save Lot.
Maybe a poor way to put it but i do that quite a bit.