diff --git a/src/Adapter/DbTable/AbstractAdapter.php b/src/Adapter/DbTable/AbstractAdapter.php index 3e908a2..55212cf 100644 --- a/src/Adapter/DbTable/AbstractAdapter.php +++ b/src/Adapter/DbTable/AbstractAdapter.php @@ -348,7 +348,7 @@ protected function authenticateQuerySelect(Sql\Select $dbSelect) */ protected function authenticateValidateResultSet(array $resultIdentities) { - if (count($resultIdentities) < 1) { + if (! $resultIdentities) { $this->authenticateResultInfo['code'] = AuthenticationResult::FAILURE_IDENTITY_NOT_FOUND; $this->authenticateResultInfo['messages'][] = 'A record with the supplied identity could not be found.'; return $this->authenticateCreateAuthResult();