Queue empty check