Mental health and the courts