This error message:

"arr" isn't an array

looks perfectly OK to me.