                has_data = true;
%             else
%                 has_data = false;
%             end
            
            has_data = length(obj.stack);
        end
        
        %% getDataForCopy
        % See <Layer.html Layer documentation>.
        function data = getDataForCopy(obj)
            data = cell(1, 2);
            
            data{1} = obj.getStack();
            data{2} = obj.getCData();
        end
        
        %% setCopyData
        % See <Layer.html Layer documentation>.
