Delete makeTreeArray method from helper