protected function getElementByLabel($asElement, $asKey, $asLabel) { if (is_scalar($asElement)) { return $asElement; } return is_array($asLabel) ? $this->getElement($asElement, $this->getAsArray($asKey, true), '') : $asElement; }