simplify history.state support check