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

Done!