introspection: Helper function to access arrays