If variable exists now works. Suggested by Riot. Thanks.