public function toArray() { if ($this->_configArray == null) { throw new \ErrorException('Configuration not yet fully loaded'); } return $this->_configArray; }