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: rdivide.m
    path of file: ./repos/chebfun/@chebfun3
    
    the code of the file until where you have to start completion: function h = rdivide(f, g)
%./   Pointwise right divide for CHEBFUN3 objects.
%   RDIVIDE(F, G) is the same as F./G.
%
%   F./G returns (1/G)*F if F is a CHEBFUN3 and G is a double.
%
%   F./G returns F/G if F is a double and G is a CHEBFUN3. This does not 
%   work if G becomes numerically close to zero.
%

    
function h = rdivide(f, g)
%./   Pointwise right divide for CHEBFUN3 objects.
%   RDIVIDE(F, G) is the same as F./G.
%
%   F./G returns (1/G)*F if F is a CHEBFUN3 and G is a double.
%
%   F./G returns F/G if F is a double and G is a CHEBFUN3. This does not 
%   work if G becomes numerically close to zero.
%
% See also CHEBFUN3/LDIVIDE.

% Copyright 2017 by The University of Oxford and The Chebfun Developers.
% See http://www.chebfun.org/ for Chebfun information.

% Empty check: 
if ( isempty(f) || isempty(g) ) 
    h = chebfun3();
    return
end