public function getIsValid() { if ($this->flightVoyage) { return $this->flightVoyage->getIsValid(); } else { return true; } }