Can I get special tax forgiveness for a child I claim my niece every year although she is not mine I have a court order in place until she is 18 can I check yes?

It says they have to say to be a foster, biochild, grandchild but it says exclude children who are not urs with a court order does that mean I can claim her even though it says check no if she is not my child?