Variational models of life-histories: When do solutions exist?