I apologize,I was guided by the syntax of other languages ​​when I modified this, in php is totally different than I imagined​​, I forgot to do homework really LOL, I did not know the return clause ended the function immediately and return the value, in other languages ​​does not, apologies to all. Has been corrected. My apologies again. Please include the fix in the repo to update my servers freely, sorry ermal and renato