static void DoPrint(Bank bank) { Account account = FindAccount(bank); if (account == null) { return; //stop continuation of procedure } account.PrintContents(); }