This seems fragile to me (though I'm not sure of a more proper check ATM...)