Just cast $data->language as a string

This will save a lot of people headaches when trying to cache this and getting 'Serialisation not allowed errors'