function getChurch($tid)
{
    //TODO: delete getChurch();
    try {
        $church = new Church($tid);
        $church->allowOldStructure();
        return (array) $church;
    } catch (Exception $e) {
        //If there is no such church, we return an empty array();
        //echo $e->getMessage();
        return array();
    }
}