while it is not your mistake, can you please change this to `'' === trim($value)`? If you cannot do that, you can just say it and I'll do it or help you :)