If you want to expose an array, create a method that returns it.

Your set method is also completely busted as well, since it doesn't blow away old keys. This is all kinds of wrong.