Well, I can honestly say that I have had to ask. Sometimes the lines are really not clear. People tend to gather and talk in line and sometimes it is not that obvious when you walk up.
I have also gotten behind someone only to find out that the huge gap behind them was not the end of the line. Someone behind them was not paying attention and was standing way back. Then, I end up embarrassed feeling like they must have thought I was cutting in line. Better to ask!
I was not where you were, so who knows. I only know that it is not always clear to me. THen again, I am senile.