Ensure that the params is actually an array

@jancborchardt