Fixing some missing is_array checks