PHP Method will echo/print_r results but will not return them
<p>This method seems to always return false even though I can print_r the results before the return statement, I always get false. Method in question....</p>

<pre><code>    public static function getGroupOptions($pid=0, $ogid=0) {

        if($data = self::getOptionsData($pid, $ogid)) {
            $Options = array();
            Load::Object('ProductOption');
            foreach($data as $key =&gt; $rec) {
                $Option = new ProductOptionObject;
                $Option-&gt;Populate($rec);
                array_push($Options, $Option);

            }

            //echo "&lt;pre&gt;";print_r($Options);echo "&lt;/pre&gt;";die;  
            return $Options;
        }
        return false;
    }
</code></pre>

<p>print_r dumps the array of ProductOptionObject's with the correct data no problems.</p>

<p>This is calling line...</p>

<pre><code>            $Options = ProductOptionFactory::getGroupOptions($this-&gt;pId, $this-&gt;getBean('ogId'));
            //echo gettype($Options); echo $Options === false ? "FALSE" : "NOT FALSE"; die;
</code></pre>

<p>debug line always prints 'Boolean FALSE'.</p>

<p>Using: PHP 5.3.14 / Apache2 2.2.8 / CentOS 5.8</p>
