this block can be removed 

```
                if (!isset($table['demand'][$user->get_id()])) {
                    $table['demand'][$user->get_id()] = [];
                }
```