public static function array_has($arr, $path) {
		if(!$path)
			return false;
		if(!is_array($path))
			$path = [$path];
		foreach($path as $key) {
			if(!isset($arr[$key]))
				return false;
			else
				$arr = $arr[$key];
		}
		return true;
	}
public static function array_has($arr, $path) {
		if(!$path)
			return false;
		if(!is_array($path))
			$path = [$path];
		foreach($path as $key) {
			if(!isset($arr[$key]))
				return false;
			else
				$arr = $arr[$key];
		}
		return true;
	}
public static function array_has ( $ arr , $ path ) { if ( ! $ path ) return false ; if ( ! is_array ( $ path ) ) $ path = [ $ path ] ; foreach ( $ path as $ key ) { if ( ! isset ( $ arr [ $ key ] ) ) return false ; else $ arr = $ arr [ $ key ] ; } return true ; }
Check if element exists in array.
@param  array        $arr
@param  string|array $path  list of nested keys.
@return boolean
@api
Check if element exists in array .