If accountNumber is null, we know the result already. This halves the search time.