It should return null if the key doesn't exists. Because the var "versionsHistory" is not a single dimension array.

We can't return a single dimension array because the only usage of this method is in a template witch only check the first dimension (and bug if it's not a one dimension array).

In addition I think we don't care about the versionHistory if it's not the symfony part, isn't it ?