Use array_get()

Signed-off-by: crynobone <crynobone@gmail.com>