private boolean hasCashOfficeWithSameNumber(CashOffice searchedCashOffice) {
    for (CashOffice cashOffice : cashOffices) {
      if (searchedCashOffice.getNumber() == cashOffice.getNumber())
        return true;
    }
    return false;
  }