private function findSlotById(string $id, array $slots)
    {
        $slot = null;
        foreach($slots as $s){
            $slot_id = $s['id'] ?? null;
            if ($slot_id == $id){
                $slot = $s;
                break;
            }
        }
        return $slot;
    }