Use array_get to fetch attribute