cfiles container exists checks

I added some checking to make sure that the container exists before accessing an object's Cfiles method.