code: def com_google_fonts_check_family_has_license(licenses):
    
    if len(licenses) > 1:
      yield FAIL, Message("multiple",
                          ("More than a single license file found."
                           " Please review."))
    elif not licenses:
      yield FAIL, Message("no-license",
                          ("No license file was found."
                           " Please add an OFL.txt or a LICENSE.txt file."
                           " If you are running fontbakery on a Google Fonts"
                           " upstream repo, which is fine, just make sure"
                           " there is a temporary license file in"
                           " the same folder."))
    else:
      yield PASS, "Found license at '{}'".format(licenses[0])
docs: Check font has a license.