Upon such petition, after such notice as the court may direct, it may determine the existence and extent of the power or authority of the petitioner to do such act or acts, including the existence of the necessity for its exercise and also any other fact or circumstance required for the exercise of such power or authority.
Mass. Gen. Laws ch. 240, § 28