title: Phalcon assign view variable inconsistent
body: <p>Having a problem getting consistent behavior assigning variables to the view. For example:</p>
  
  <p>In controller:</p>
  
  <pre><code>$this-&gt;view-&gt;media = Media::findFirst(['groupId=0', 'order' =&gt; 'RAND()', 'limit' =&gt; 1]);
  </code></pre>
  
  <p>In view:</p>
  
  <pre><code>        {% if media is defined %}
          &lt;div class="thumbnail"&gt;
              &lt;img src="{{ static_url('img/media/thumbs/' ~ media.name) }}" class="img-round"&gt;
              &lt;div class="caption"&gt;
                  &lt;h3&gt;{{ media.title }}&lt;/h3&gt;
                  &lt;p&gt;{{ media.description }}&lt;/p&gt;
              &lt;/div&gt;
          &lt;/div&gt;
          {% endif %}
  </code></pre>
  
  <p>Which is parsed like:</p>
  
  <pre><code>        &lt;?php if (isset($media)) { ?&gt;
          &lt;div class="thumbnail"&gt;
              &lt;img src="&lt;?php echo $this-&gt;url-&gt;getStatic('img/media/thumbs/' . $this-&gt;media-&gt;name); ?&gt;" class="img-round"&gt;
              &lt;div class="caption"&gt;
                  &lt;h3&gt;&lt;?php echo $this-&gt;media-&gt;title; ?&gt;&lt;/h3&gt;
                  &lt;p&gt;&lt;?php echo $this-&gt;media-&gt;description; ?&gt;&lt;/p&gt;
              &lt;/div&gt;
          &lt;/div&gt;
          &lt;?php } ?&gt;
  </code></pre>
  
  <p>The problem is that when the parsed version of the template, $media is not accessible via $this so the isset($media) passes, but the references to $this->media returns nothing.</p>
  
  <p>Any way to force $media to be local in scope?</p>