public function remove(AbstractObject $object)
 {
     $flag = false;
     foreach ($this->objects as $k => $v) {
         if ($v->getId() == $object->getId()) {
             unset($this->objects[$k]);
             $flag = !$flag;
             $k != $this->getCount() && $this->pushBackObjects($k);
             $this->index--;
             break;
         }
     }
     return $flag;
 }