fixed adding a single param as key => value

When adding 1 param an array needs to be constructed in k,v pairs not two array values index as 0,1