verify if $the_['function'] is not an empty string ""

Fix for the error on line 214  because $the_['function'] was an empty string ""