private function isBool(Node $node)
{
if ($node instanceof ConstFetch) {
$const = $node->name->parts[0];
if (isset($this->constMap[$const])) {
return is_bool($this->constMap[$const]);
}
return is_bool($const);
}
}