Isn't this only checking for the outer container?