def will_be_caught(layers, positions):
    """Check if you will be caught on any layer, based on initial positions."""
    for depth, params in layers.items():
        if (positions[depth] + depth) % params['range'] == 0:
            return True
    return False