wasFalse was returning false instead of true, changed wrong buffer indexing