better check for set variable