Adding union() and isEmpty() methods