Mongo Playground

Configuration

[{_id:ObjectId("61e1312ad435c7124aa883a1"),name:"Brian",languages:"English,Spanish,French"},{_id:ObjectId("37e1312ad435c7124aa883a9"),name:"Mike",languages:""},{_id:ObjectId("52e1312ad435c7124aa883a2"),name:"Max",languages:"English"}]

Query

db.collection.aggregate([{"$set":{"languages":{$filter:{input:{$split:["$languages",","]},cond:{$gt:[{$strLenCP:"$$this"},0]}}}}},{$set:{languages:{$map:{input:"$languages",as:"item",in:{name:"$$item",active:false}}}}}])

Result