REFACT: Factorize no data check

and avoid raw loop...
11 jobs for !933 with OptimDEMHandler in 82 minutes and 21 seconds (queued for 6 seconds)
latest merge request