The court may conduct hearings and receive such evidence as is deemed necessary in order to make the determinations required in Section 6-11-3 and Section 6-11-4.