Update `serialize` method to not inlcuded empty compartments