How is an object beneficial here compared to a simple associative array?