import re


def hasNewRating(filename):
    """
    Checks if parameter file name already has a rating.
    Movie ratings are in the format (\d.\d)
    """
    pattern = re.compile('\[IMDb [0-9].[0-9]\]')
    return pattern.search(filename) is not None