[Core] Use exist function to test if the variable exist.