Master account sequence management pvy

another way to express this is to use the following: if vals.get('restart_sequence',False):
The second parameter is used to say what it should return if the key isn't found in the dict. That way you only access once the dict of vals.