public function merge(ArrayObject $array)
    {
        if (!($array instanceof $this)) {
            throw new TypeMismatchException('Passed argument is not an instance of ' . get_class($this));
        } else {
            foreach ($array as $object) {
                $this->append($object);
            }
        }
        return $this;
    }