Add idle() function to determine if the queue has any work