check for @doc[obj_name] before trying to create a dir with that name