Improve error and use count() instead of empty().
Improve error and use count() instead of empty().

ndm2/cakephp,davidyell/cakephp,dakota/cakephp,CakeDC/cakephp,cakephp/cakephp,tenkoma/cakephp,ADmad/cakephp,ADmad/cakephp,cakephp/cakephp,garethellis36/cakephp,petteyg/cakephp,garethellis36/cakephp,petteyg/cakephp,ndm2/cakephp,petteyg/cakephp,garethellis36/cakephp,mvdriel/cakephp,petteyg/cakephp,davidyell/cakephp,garethellis36/cakephp,CakeDC/cakephp,ADmad/cakephp,tenkoma/cakephp,mvdriel/cakephp,dakota/cakephp,CakeDC/cakephp,ndm2/cakephp,tenkoma/cakephp,tenkoma/cakephp,mvdriel/cakephp,CakeDC/cakephp,dakota/cakephp,ADmad/cakephp,mvdriel/cakephp,cakephp/cakephp,cakephp/cakephp,davidyell/cakephp,dakota/cakephp,ndm2/cakephp