Refactored isEmpty loop to be more readible.
Refactored isEmpty loop to be more readible.

Maks3w/zend-authentication,lynnint/zend-authentication,MadCat34/zend-authentication,malukenho/zend-authentication