consequently , the courts have the power to inquire into the legality of the exercise of the right of eminent domain and to determine whether or not there is a genuine necessity therefor ( city of manila vs. chinese community , 40 phil .