I wonder if a time-of-flight sensor would get enough response from the liquid surface, acoustic would though I am not sure about optical.Yeah, I have the same concern as well, hence the image based alternate approach,
Alternatively, you could use a non-contact sensor to determine when level was low.