Not sure about the behaviour of `Zend\Authentication\AuthenticationService` here. Should you check if `->hasIdentity()` first?