[SR-Users] How to correctly check if the variable is set?