const EXCEPTION_USERNAME_NOT_FOUND = 0xd00;
/**
- * Private constructor
+ * Protected constructor
*
* @return void
*/
$result = $wrapperInstance->doSelectByCriteria($criteriaInstance);
// Search for it
- if ($result->next()) {
- // Entry found, so all is fine
- $exists = true;
- }
+ if (!$result->next()) {
+ // Entry not found
+ $exists = false;
+ } // END - if
// Return the status
return $exists;