変数arrayがurl_variablesCにセットされてないからでは無いでしょうか?
↓のサイトにサンプルが掲載されているので参考になるかと思います。
http://feb19.jp/blog/archives/000162.php