Can you check isset($container['phpmig.sets']) first? Previously people used pimple as the container and this chained isset will break that.