protected function gPerks() { $collection = $this->newCollection(); foreach ($this->properties['perks'] as $perk) { $perk = new Perk($perk); $collection->put($perk->perkHash, $perk); } return $collection; }