A Collision With Another Planet Could Have Allowed for Life on Earth