add empty check

check if queue is empty