with this condition a separator is missing before "Other..." if the repo has a few branches and all of them were found in the reflog. 

I think instead the condition should be:

 if (itemCount > 0)