check if private_only is undefined, object or function