public function testIsEmpty()
 {
     $this->assertTrue($this->collection->isEmpty());
     $this->collection->add($this->target1);
     $this->assertFalse($this->collection->isEmpty());
     $this->collection->clear();
     $this->assertTrue($this->collection->isEmpty());
 }
 private function updateDefaultTargetData()
 {
     $defaultTarget = $this->targets->isEmpty() ? null : $this->targets->getDefaultTarget()->getName();
     foreach ($this->targetsData as $targetName => &$data) {
         if ($targetName === $defaultTarget) {
             $data->default = true;
         } else {
             unset($data->default);
         }
     }
 }