$block */ abstract public function filterBlock(array $block): bool; /** * @param array $content * @return array */ public function make(array $content): array { return array_filter(data_get($content, 'blocks', []), fn ($block) => $this->filterBlock($block)); } }