Design a function in Python which takes two strings as input and returns a boolean value as output depending on which one is longer.
def longer_string(string1, string2):
    if len(string1) > len(string2):
        return True
    else:
        return False