If an award of joint custody or of sole custody to either parent would result in substantial harm to the child, the court shall award custody to another person with whom the child has been living in a wholesome and stable environment, or otherwise to any other person able to provide an adequate and stable environment.
La. C.C. § 133