Check whether `$container` is not null