You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: str2cell.m
    path of file: ./repos/BRAPH-2/braph2genesis/src/util
    
    the code of the file until where you have to start completion: function cel = str2cell(str)
%STR2CELL transforms a string into a cell array of strings
%
% CEL = STR2CELL(STR) transforms the string STR into a column cell array 
%  with each line (separator \n) on a different cell element.
%
% See also CELL2STR.

if isempty(str)

    
function cel = str2cell(str)
%STR2CELL transforms a string into a cell array of strings
%
% CEL = STR2CELL(STR) transforms the string STR into a column cell array 
%  with each line (separator \n) on a different cell element.
%
% See also CELL2STR.

if isempty(str)
    cel = {};
else
    cel = splitlines(str);
end