public function offsetSet( $item, $node )
    {
        // We only allow to append nodes to node list, so that we bail out on
        // all other array keys then null.
        if ( $item !== null )
        {
            throw new ValueException( $item, 'null' );
        }

        return $this->nodes[] = $node;
    }