public function setStructure(array $layouts)
    {
        $computedLayouts = [];
        foreach ($layouts as $l) {
            $loop = isset($l['loop']) ? (int)$l['loop'] : 1;
            unset($l['loop']);
            for ($i=0; $i<$loop; $i++) {
                $computedLayouts[] = $l;
            }
        }

        $this->structure = $computedLayouts;

        return $this;
    }