public function getModsAttribute($value) { if (empty($this->_mods)) { $this->_mods = ModsHelper::toArray($value); } return $this->_mods; }