Added isEmpty() for Queue