i am unsure about renaming this parameter. calling it $name makes it obvious we don't know yet if it is a content document or not.