check if variables are defined