The court was told the pet was denied food, water and sanitation