Get and set properties from deeply nested arrays