cosmetic: make shadow check a bet more compact