private function isNull(Node $node) { if ($node instanceof ConstFetch) { $const = $node->name->parts[0]; return $const === 'null'; } }