def query_alias(aliases, gene):
    """check if gene is in list of aliases"""
    # check if value is nan
    if aliases == aliases:
        aliases = [alias.replace(" ", "") for alias in aliases]
        if gene in aliases:
            return True
        else:
            return False
    else:
        return False