Check queue is empty not catch exception, because RuntimeException can be thrown for over reason