public function parseLiteral($ast) { if ($ast instanceof BooleanValueNode) { return (bool) $ast->value; } return null; }