public function Width() { if ($this->ProductVariation()->Width) { return $this->ProductVariation()->Width; } return $this->Product()->Width; }