request = $request; $this->configurationManager = $configurationManager; } protected function makeDataFormattedForDepDrop(Closure $callback, array $items): array { return array_values(array_filter( array_map( $callback, $items ), function ($item) { return isset($item['id']) && !EmptyCheck::isEmpty($item['id']); } )); } }