Replace loose comparison with casting to boolean. In any case AuthComponent::user() returns null not empty array when user isn't logged in.
Replace loose comparison with casting to boolean.
In any case AuthComponent::user() returns null not empty array when user isn't logged in.

CVO-Technologies/cakephp,et304383/passbolt_api,ndm2/cakephp,tisu2tisu/cakephp,khoimt/cakephp-study,elboletaire/cakephp,Balachan27/cakephp,petteyg/cakephp,petteyg/cakephp,eboominathan/cakephp,tgr0ss/cakephp,cakephp-fr/cakephp,et304383/passbolt_api,akintoey/cakephp,yinhe007/cakephp,pbaire/cakephp,berrygoudswaard/cakephp,ionas/cakephp,thinkingmedia/cakephp,bravo-kernel/cakephp,ndm2/cakephp,nrother/cakephp,ndm2/cakephp,web-player/cakephp,dakota/cakephp,pbaire/cakephp,yinhe007/cakephp,justinyost/cakephp,akintoey/cakephp,kumamidori/cakephp,HavokInspiration/cakephp,eboominathan/cakephp,cakephp-fr/cakephp,CakeDC/cakephp,ionas/cakephp,adopico/cakephp,jerems02/cakephp,eryw/cakephp,ADmad/cakephp,thinkingmedia/cakephp,berrygoudswaard/cakephp,burriko/cakephp,et304383/passbolt_api,gmponos/cakephp,Phillaf/cakephp,justinyost/cakephp,michaelze/cakephp,erikfig/cakephp,ndm2/cakephp,burriko/cakephp,gmponos/cakephp,dakota/cakephp,tisu2tisu/cakephp,cakephp/cakephp,dkarvounaris/cakephp,khoimt/cakephp-study,dakota/cakephp,kumamidori/cakephp,thinkingmedia/cakephp,mvdriel/cakephp,michaelze/cakephp,Phillaf/cakephp,cakephp-fr/cakephp,bravo-kernel/cakephp,mvdriel/cakephp,davidyell/cakephp,web-player/cakephp,eryw/cakephp,pbaire/cakephp,CakeDC/cakephp,khoimt/cakephp-study,erikfig/cakephp,eboominathan/cakephp,kumamidori/cakephp,ADmad/cakephp,dakota/cakephp,jeffblack360/cakephp,jjj117/cakephp,Phillaf/cakephp,tgr0ss/cakephp,yinhe007/cakephp,nrother/cakephp,HavokInspiration/cakephp,tenkoma/cakephp,CakeDC/cakephp,akintoey/cakephp,nrother/cakephp,tenkoma/cakephp,CVO-Technologies/cakephp,jeffblack360/cakephp,dkarvounaris/cakephp,cakephp/cakephp,timhoeppner/cakephp,web-player/cakephp,berrygoudswaard/cakephp,ionas/cakephp,gmponos/cakephp,jerems02/cakephp,burriko/cakephp,CakeDC/cakephp,ADmad/cakephp,HavokInspiration/cakephp,tgr0ss/cakephp,et304383/passbolt_api,adopico/cakephp,timhoeppner/cakephp,et304383/passbolt_api,erikfig/cakephp,michaelze/cakephp,cakephp/cakephp,tisu2tisu/cakephp,CVO-Technologies/cakephp,justinyost/cakephp,davidyell/cakephp,timhoeppner/cakephp,garethellis36/cakephp,jjj117/cakephp,cakephp/cakephp,dkarvounaris/cakephp,ADmad/cakephp,Balachan27/cakephp,eryw/cakephp,mvdriel/cakephp,petteyg/cakephp,jerems02/cakephp,elboletaire/cakephp,petteyg/cakephp,mvdriel/cakephp,bravo-kernel/cakephp,garethellis36/cakephp,garethellis36/cakephp,jjj117/cakephp,tenkoma/cakephp,jeffblack360/cakephp,Balachan27/cakephp,garethellis36/cakephp,elboletaire/cakephp,tenkoma/cakephp,davidyell/cakephp,adopico/cakephp