added a method that checks if queue items are present