7pm to 5am is great for a 5mo, so if she does it again I would feed at 5am. You will probably find she will take less at the next feed, but compensate throughout the day.
If you try it again & she doesn't settle easily, it may be hunger so feed, but she might wake at 3,4 or 5 some nights.
Liam who is just a week or so younger doesn't get a df & goes from 7ish to sometime between 3 & 6 most nights, so don't expect it to be 5 all the time, but probably expect she can go to at least 3am, so if you resettle at 1.30 & she wakes at 3, I would suggest feeding.
HTH