and a queueEmpty check