def is_config_file_valid(config_file):
    """Function to check if config file is valid. Valid if file has key 'profiles'"""
    if type(config_file) is dict and 'profiles' in config_file.keys():
        return True
    return False
