in reply to Not an ARRAY reference, even though it is?
Your Mother recently brought to my attention Rubber Duck Debugging. Sounds like that's what has happened to you :)