private function removeEmptyAttributes(SS_List $list, $type)
    {
        $pageAttributes = $list->map('ID', $type)->toArray();

        $emptyAttributess = array_map(function ($value) {
            return $value == '';
        }, $pageAttributes);

        if (!count($emptyAttributess)) {
            return $list;
        }

        return $list->filter([
            'ID:not' => array_keys(
                array_filter($emptyAttributess, function ($value) {
                    return $value == 1;
                })
            )
        ]);
    }