The method already exists, my bad.
Do you want to keep my fonctional version ?