OPINION OF THE COURT
Stephen B. Batoff appeals from two orders in this action which he initiated in state court but which was removed to the district court. The first order, entered on January 15,1992, dismissed the non-diverse defendant, appellee Leonard M. Paul, and denied Batoff s motion to remand the case to the state court for lack of complete diversity. The second order, entered on March 23, 1992, granted the motion of the remaining defendant, appellee State Farm Insurance Company, to dismiss under Fed. R.Civ.P. 12(b)(6). We find that the district court should not have dismissed Paul as a defendant and that it thus lacked subject matter jurisdiction. Accordingly, we will reverse the order of January 15, 1992, vacate the order of March 23, 1992, and remand the case to the distriсt court with instructions in turn to remand the case to the state court in which it was originated.
I.
BACKGROUND
Batoff, a Pennsylvania citizen, is a licensed psychologist who treats individuals injured in motor vehicle accidents. A number of Batoff s patients are insured under automobile insurance policies with medical payment provisions issued by State Farm and have assigned to him their rights under their policies to be reimbursed for medical expenses. While Batoff has submitted his bills to State Farm under these provisions, State Farm has refused to pay some of them. State Farm, at least in part, has based its refusal on reports written by Paul, a psychologist in private practice, who is retained by State Farm to address questions relating to the appropriаteness, necessity, and cost of psychological services rendered to State Farm insureds.
This refusal led Batoff to file a suit in the Court of Common Pleas of Philadelphia County, Pennsylvania, against State Farm, a citizen of Illinois, and against Paul, a citizen of Pennsylvania. In Count I of the complaint, Batoff contends that State Farm owes him $107,744 as assignee of his patients’ rights to payment for medical expenses, and in this count he seeks compensation, costs, attorneys’ fees, and punitive damages from State Farm. In Count II, Batoff seeks compensatory and punitive *850 damages, costs, and attorneys’ fees from State Farm and Paul for their alleged civil conspiracy to (1) deprive him of money due, (2) disparage and ruin his reputation, and (3) cause others to refrain from referring patients to him. 1
In Count III, Batoff alleges that State Farm breached its duty of fair dealing owed to him and its insureds, by (1) arbitrarily determining in advance not to pay his bills, (2) “employing as an expert Dr. Paul who is not competent, fair or unbiased,” (3) “directing Dr. Paul to prepare” the misleading reports, and (4) distributing the reports to third pеrsons with the intent to damage Batoff’s reputation and injure his business. In this count, in which he seeks damages only from Paul, Batoff alleges:
Dr. Paul, by producing reports he knew to be inaccurate find that he knew State Farm would use to justify its refusal to pay Dr. Batoff’s bills and distribute to third persons with the intent to damage Dr. Batoff’s reputation and injure his business breached the duty he owed to Dr. Batоff. [sic]
App. at 36.
On October 5, 1990, State Farm filed a notice removing the case to the United States District Court for the Eastern District of Pennsylvania. State Farm alleged in the notice that Paul is immune from suit and was joined by Batoff to defeat the diversity jurisdiction which the district court otherwise could exercise under 28 U.S.C. § 1332(a)(1). 2 On October 15, 1990, State Farm filed a motion in the district court to dismiss the comрlaint under Fed. R.Civ.P. 12(b)(6) for failure to state a claim upon which relief could be granted. In response, on October 23, 1990, Batoff filed a petition to remand the case to the Court of Common Pleas pursuant to 28 U.S.C. § 1447(c), 3 asserting that diversity is not complete because he and Paul are citizens of Pennsylvania.
On January 15, 1992, the district court entered an order denying Batoff’s рetition. While in its accompanying memorandum the court indicated that State Farm had urged that Paul is immune from Batoff’s suit and was joined fraudulently, the court stated that it would deny “the motion to remand but not for the reasons advanced by the defendants.”
The court then evaluated the merits of Batoff’s claims against Paul. Citing cases from the courts of appeals for thе Third and Sixth Circuits and from the district court for the Eastern District of Pennsylvania, the court determined that a corporation cannot conspire with its employee. It said that because the complaint alleged Paul was an employee of State Farm acting under its direction, Paul could not have been a co-conspirator “nor otherwise be legally responsible” to Batoff. It further held that to the extent that the complaint alleged that Paul was an independent expert, retained to provide information and advice to State Farm, he was “immune from suit,
Moses v. McWilliams,
[
*851 The court, in a memorandum and order entered on March 23, 1992, subsequently granted State Farm’s motion to dismiss the action against it under Rule 12(b)(6). However, in view of our conclusion that the district court lacked subject matter jurisdiction, we will not describe the basis for the second оrder or consider it on the merits. Batoff has appealed, and we have jurisdiction under 28 U.S.C. § 1291, and exercise plenary review. 5
II.
DISCUSSION
We center our discussion on an examination of the district court’s decision to dismiss Paul as a defendant for, in view of the common Pennsylvania citizenship of Batoff and Paul, there could be no basis for federal jurisdiction in this diversity casе if Paul properly were made a defendant. Thus, if Paul should not have been dismissed as a defendant, this case should have been remanded to the court of common pleas.
A district court must consider a number of settled precepts in ruling on a petition to remand a case to state court for lack of diversity jurisdiction. When a non-diverse party has bеen joined as a defendant, then in the absence of a substantia] federal question the removing defendant may avoid remand only by demonstrating that the non-diverse party was fraudulently joined. But the removing party carries a “heavy burden of persuasion” in making this showing.
Steel Valley Author. v. Union Switch & Signal Div.,
Joinder is fraudulent “ ‘where there is no reasonable basis in fact or colorable ground supporting the claim against the joined defendant, or no real intention in good faith to prosecute the action against the defendants or seek a joint judgment.' ”
Boyer,
In evaluating the alleged fraud, the district court must “focus on the plaintiff’s complaint at the time the petition for removal was filed. In so ruling, the district
*852
court must assume as true all factual allegations of the complaint.”
Steel Valley,
As we have stated already, the court concluded that it could dismiss Paul from the action simply because Batoff’s complaint “fails to state a valid claim” against him. Thus, while the court did not characterize its analysis as being the same as it would mаke on a ruling on a motion to dismiss under Fed.R.Civ.P. 12(b)(6), that is exactly what it was. But the inquiry into the validity of a complaint triggered by a motion to dismiss under Rule 12(b)(6) is more searching than that permissible when a party makes a claim of fraudulent joinder. Therefore, it is possible that a party is not fraudulently joined, but that the claim against that party ultimately is dismissed for failure to state a claim upon which relief may be granted. Accordingly, the district court erred in converting its jurisdictional inquiry into a motion to dismiss.
Our opinion in
Lunderstadt v. Colafella,
Accordingly, while we will not apply a Rule 12(b)(6) standard in examining Ba-toff s action against Paul, we will examine the complaint and the district court’s opinion to determine whether they could support a conclusion that the claims against Paul were not even colorable,
i.e.,
were wholly insubstantial and frivolous. The district court, citing
Denenberg v. American Family Corp.,
The district court next found that, to the extent that Paul may be considered an independent expert, under the holding in
Moses v. McWilliams,
State Farm introduced the concept that Pаul was acting in a litigation capacity in its notice of removal, in which it asserted that Paul’s only involvement with State Farm “has been in his capacity as an independent expert witness who was retained by State Farm in connection with pending state court litigation between [Batoff] and State Farm.” Even if we allow a limited piercing of the complaint to cоnsider this allegation,
see Boyer,
We also point out that Moses was predicated on the patient’s waiver of the confidentiality privilege by instituting her action. A Pennsylvania court might conclude that that consideration is not applicable here because we cannot be certain that Batoff’s patients and Paul had a relationship creating a privilege. Thus, a state court might determine that Batoff’s patients had no reasоn to believe that by assigning their claims to Batoff, or even by bringing the claims themselves, they should have anticipated that' the claims might be subject to a biased evaluation by Paul.
It is evident from our inquiry that we cannot say that Batoff’s complaint is wholly insubstantial and frivolous. Thus, the motion to remand should have been granted. We, of course, do not suggest that our inquiry into Pennsylvania law has been penetrating, but it should not be, for if we made such an inquiry we would have decided this diversity case on the merits, even though the parties are not diverse. A claim which can be dismissed only after an intricate analysis of state law is not so wholly insubstantial and frivolous that it may be disregarded for purposes of diversity jurisdiction. We draw further support for our result from
Neitzke v. Williams,
Finally, we emphasize that we “do not purport to express an opinion on the merits of [the] claims asserted against [Paul], nor do we even suggest that a [Pennsylvаnia] court must find as a matter of law that valid claims have been stated.”
B., Inc. v. Miller Brewing Co.,
III.
CONCLUSION
In view of the aforesaid, we will reverse the order of January 15, 1992, will vacate the order of March 23, 1992, and will remand the case to the district court so that it may in turn be remanded to the court of common pleas. Costs will be taxed in favor of Batoff.
Notes
. Batoff avers that, in furtherance of the conspiracy, Paul prepared false, malicious, and misleading reports concerning Batoff s treatment of his patients and may have filed false complaints with the Pennsylvania Board of Psychology Examiners.
. Section 1332(a)(1) states: "The district courts shall have оriginal jurisdiction of all civil actions where the matter in controversy exceeds the sum or value of $50,000, exclusive of interests and costs, and is between — (1) citizens of different states.”
.Section 1447(c) provides in pertinent part:
A motion to remand the case on the basis of any defect in removal procedure must be made within 30 days after the filing of the notice of removal under section 6(a). If at any time bеfore final judgment it appears that the district court lacks subject matter jurisdiction, the case shall be remanded.
. The district court held that under
Brownsville Golden Age Nursing Home, Inc. v. Wells,
. The order raises an issue of appellate jurisdiction which we must address, as it disposed of the case on the merits but provided that Batoff "shall have thirty days to amend” certain of his allegations. Batoff did not amend his complaint but instead filed a notice of appeal within 30 days of the order. While we have held that an order dismissing a complaint without prejudice is not a final, appealable order unless the plaintiff cannot amend or declares his intention to stand on his complaint,
see Borelli v. City of Reading,
