This check can be performed before, instead of repeating it for `black_box` and `white_box`  (and i suspect that instead of repeating it some other times before that above)