test = [1, 1, 1, 1] ifelse(isassigned(test, 5), test[5], "nope")
To me, this should yield the string "nope", but instead I get