At the hearing upon the motion, the court shall order the plaintiff to file the undertaking if the defendant shows to the satisfaction of the court that (i) the plaintiff would not suffer undue economic hardship in filing the undertaking, and (ii) there is no reasonable possibility that the plaintiff has a cause of action against each named defendant with respect to whom the plaintiff would otherwise be required to file the undertaking. No appeal shall be taken from any order made pursuant to this subdivision to file or not to file the undertaking.
A determination by the court that the undertaking either shall or shall not be filed or shall be filed as to one or more defendants and not as to others, shall not be deemed a determination of any one or more issues in the action or of the merits thereof. If the court, upon any such motion, makes a determination that an undertaking be filed by the plaintiff as to any one or more defendants, the action shall be dismissed as to the defendant or defendants, unless the undertaking required by the court has been filed within such reasonable time as may be fixed by the court.
Ca. Civ. Proc. Code § 1029.5