Nope, it checks that "domain" is not null, which is the case when the vm is undefined.