It currently returns a recordcount given the provided filter. Instead, it should use getRecordcountOnly to selectData so that only a single row is ever returned.
Submitted PR at
Nice one, thanks Brayden. This is turning out to be a little more complex - some tests failing revealing some other issues. But will work through to get done.