$this->getResultInstance()->rewind();
// Search for it
- if ($this->getResultInstance()->next()) {
+ if ($this->getResultInstance()->valid()) {
// Entry found
$exists = true;
} // END - if
$this->getResultInstance()->rewind();
// Search for it
- if ($this->getResultInstance()->next()) {
+ if ($this->getResultInstance()->valid()) {
// Entry found
$exists = true;