Fixed incorrect use of array_get