// Get result back
$resultInstance = $wrapperInstance->doSelectByCriteria($criteriaInstance);
- // Advanced to next entry
- if (!$resultInstance->next()) {
- // Not valid!
- assert(false);
- } // END - if
+ // Advanced to next entry and assert on it as it should always be there
+ assert($resultInstance->next());
// Set the result instance
$this->setResultInstance($resultInstance);