Avoid error when the param is array