check for value of variables existing