Is if(usr) sufficient or is there some other way to do this? usr was already used in open(), so I figured it was fine.