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