I need to dynamically extract only certain keys from an array.

Ex:

```
$array = [
        "a" => true,
        "b" => false,
        "c" => [
            0 => [
                "a" => "x",
                "b" => [
                    "x" => "Y"
                ]
            ],
            1 => [
                "a" => "x",
                "b" => [
                    "x" => "Y"
                ]
            ],
        ]
    ];

```

And from it I need to extract the following array, which can change:

```
$newArray = [
        "b" => false,
        "c" => [
            0 => [
                "b" => [
                    "x" => "Y"
                ]
            ],
            1 => [
                "b" => [
                    "x" => "Y"
                ]
            ],
        ]
    ];

```