I `var_dump`ed `$type` and got an array of strings.