input: from typing import List
  
  def is_valid_transfer(bank_accounts: List[dict], account_name: str, amount: float) -> bool:
      """ Check if a bank account with given name exists in the list of bank accounts 
      and if the account has sufficient balance to transfer the specified amount.
      Each bank account is represented as a dictionary with keys 'name' and 'balance'.
      >>> is_valid_transfer([{'name': 'Alice', 'balance': 1000.0}, {'name': 'Bob', 'balance': 500.0}], 'Alice', 500.0)
      True
      >>> is_valid_transfer([{'name': 'Alice', 'balance': 1000.0}, {'name': 'Bob', 'balance': 500.0}], 'Bob', 600.0)
      False
      """
  
output:     for account in bank_accounts:
          if account['name'] == account_name:
              return account['balance'] >= amount
      return False