This is okay but it should probably be a property of the Module itself with an accessor.  In fact, the structured data array should be an object in order to help with the data access needed by clients, instead of writing helper functions like this.  That means refactoring a lot of this code though so this approach is okay for now.