Finding reason in history: the case for a philosophy of history as science