In certain situations, grandparents or other relatives may be granted custody of a child if it is in the child's best interests and the parents are unable or unwilling to care for the child.