protected function filterKeysStartingWith(array $values, string $startsWith) : array { return array_filter($values, function ($key) use($startsWith) { return $this->startsWith($key, $startsWith); }, ARRAY_FILTER_USE_KEY); }