I've tried if(!Leader) to read it, but it hasn't been working. Is there another way to do it? I have standard saving and loading systems. The files are saved occasionally in-game, and loaded whenever the world boots up. (I only put the relevant pieces of code as a demonstration btw)
//code attempt to check it
if(!Leader)
Leader=M.key
//saving code
var/savefile/S=new("RANK")
S["Leader"]<<Leader
//loading code
if(fexists("RANK"))
var/savefile/S=new("RANK")
S["Leader"]>>Leader
Running out the door so I didn't double check my syntax, but you can try this.