def check_GHS_data(request_json):
    """This function checks to see if GHS safety information data is available
    in the pubchem data file for a chemical"""

    if 'Fault' in request_json:  # first key in dict will be Fault if no GHS heading in json data
        return 'No GHS data available'

    else:
        return 'GHS data available'