Line 234 assumes two arrays for array_merge.  It's possible that the else{} block on 230 results in the $params['path'] being a scalar. May generate a warning in some cases?