Why would a court order a writ of habeas corpus?
A. to determine if someone had been legally arrested
B. to determine if someone had been provided legal protection
C. to determine if a law is constitutional or not
D. to determine if discrimination has occurred