check if vars are defined