Need for conditional params in queries

Hello,

In my queries, I need to add some params only on certain condition, for example for filtering :

basic call without filtering :
myapi.com/items/products

when user hit some filters :
myapi.com/items/products?filters[category][_in]=1234,98765

for now, I can store the categories in an array and use it to filter, but if no category is selected, I end with :
myapi.com/items/products?filters[category][_in]=

which would return no product, instead of all products as the user would expect.

So I would need to be able to add the filters[category][_in] only if my array of selected categories is not empty, is that doable with Plasmic ?

Thank you,
Vincent