Migrating from v1.0+ to v2.0 from v1.0+ to v2.0 Return value has changed Instead of: var isNeeded = vhCheck() you will need to var test = vhCheck() var isNeeded = test.isNeeded