add isEmpty
while coding to pass the TEST of BufferOverRun