with means for detecting the presence of a container