Improved exception message while trying to access an attribute from an empty array.

I would have said: `Key "%s" does not exist as the array is empty`