Fixed check whether vars was passed.