This is exactly how $this->terms is constructed in the constructor. Why not simply return it as it is?