I'm not trying to sound glib, but a court can 'determine' just about anything. Whether or not the ruling continues to stand in light of appeals and
other court rulings is another matter. There are all sorts of seemingly bizarre rulings, like a house being declared "legally haunted".
[1] https://en.wikipedia.org/wiki/Stambovsky_v._Ackley