Check state to see if action is needed