added method to verify the presence of application_id in a queue