public function getSku() { if ($this->hasSku()) { return $this->sku->getAttribute('code'); } return; }