void add_clone(string pathtowhatever,int how_many); use object obj; obj = present("nameofthing"); if(obj) { } if you need to know if a particular thing is present.