Just cast $data->language as a string