           if obj.getStackSize() &gt;= 1</span>
<span class="comment">%                 has_data = true;</span>
<span class="comment">%             else</span>
<span class="comment">%                 has_data = false;</span>
<span class="comment">%             end</span>

            has_data = length(obj.stack);
        <span class="keyword">end</span>
</pre><h2>getDataForCopy<a name="5"></a></h2><p>See <a href="Layer.html">Layer documentation</a>.</p><pre class="codeinput">        <span class="keyword">fu