public static function elementFinder($needle, $haystack, $delimiter = '.')
{
$break = strpos($needle, $delimiter);
$key = $break === false ? $needle : substr($needle, 0, $break);
if (isset($haystack[$key])) {
if ($key == $needle) {
return $haystack[$key];
}
return static::elementFinder(substr($needle, $break + 1), $haystack[$key]);
} else {
return null;
}
}