public function filter(\Closure $c) { $variableDeclarationList = []; $blockList = []; if ($this->variableDeclarationList !== null) { $variableDeclarationList = $this->variableDeclarationList->filter($c); } if ($this->blockList !== null) { $blockList = $this->blockList->filter($c); } return array_merge($variableDeclarationList, $blockList); }