Avoid errors when the value is not an array