Because we are here: a new approach to the history of the anthropic principle