public static function has( $key, $arr ) 
	{	
		if ( isset( $arr[$key] ) ) 
		{
			return true;
		}

		if ( strpos( $key, '.' ) !== false ) 
		{
			$kp = explode( '.', $key );

			switch ( count( $kp ) ) {
				case 2:
					return isset( $arr[$kp[0]][$kp[1]] ); break;
				case 3:
					return isset( $arr[$kp[0]][$kp[1]][$kp[2]] ); break;	
				case 4:
					return isset( $arr[$kp[0]][$kp[1]][$kp[2]][$kp[3]] ); break;

				// if there are more then 4 parts loop trough them
				default:
					$curr = $arr;
					foreach( $kp as $k ) 
					{
						if ( isset( $curr[$k] ) ) {
							$curr = $curr[$k];
						} else { 
							return false; 
						}
					}
					return true;
				break;
			}
		}
		return false;
	}