Should we check that detail.id !== null?