var fullyvested added to if statement