added check if variable exists in variable get-set functions