Simply pass the $params array in a single parameter. This will make this a lot clearer.