public function get_movie_rating( $votes ) {

		$votations = [];

		foreach ( $votes as $key => $value ) {
			for ( $i = 0; $i < $value; $i++ ) {
				$votations[] = $key;
			}
		}

		if ( count( $votations ) ) {
			$rating = array_sum( $votations ) / count( $votations );
			return round( $rating, 1 );
		}

		return 'N/A';
	}