i dont code but, do you need a } at the end of the else statement?
1 comments
Nothing to do with brackets, it might be a certain function not corresponding with my API.