remove unnecessary `$vms` check to avoid JS error