In generall the behavior for that metas is not nice i never realy know if the array keys are existing. I know that the sonata guys just want to cover all possible usecases, but that array realy wired from a "nice code/oop" view. I wished to have a object structure with nulls. But this is the actual code We have to use. 
Any suggestions to write it better?