Make state-not-set check a self-documenting method