ensure  passed to params is always an array