Solved by ptrblck in post #2 
              
              
                I’m not sure what exactly “it does not work” mean regarding the last code snippet, i.e. if the check is not working or if you are seeing None samples and are unsure how to fix it. 
In any case, I would try to narrow down why None objects are returned and try to fix this afterwards. 
To do so, use a b…