With mail visibility fixed/clarified @
MDL-60548 ... the same logic is at very least present in a couple of places within core. That's not good for maintenance.
This issue is about to centralize that logic in a unique function that will validate that all the pieces of information are provided and return an unified result.
Just that. Maybe we could use the same approach for other fields too so a bit of wide-thinking is welcome.