public function exists($name) { try { $this->load($name); } catch (\InvalidArgumentException $e) { return false; } return true; }