public function getXmlLayer() { $xmlLayers = $this->project->getXmlLayer($this->id); if (count($xmlLayers) == 0) { return null; } return $xmlLayers[0]; }