What do you think in replace by `strlen($asString) > 0`? It will avoid any other issue with the content.