Same question here: what was wrong. For me this is not good. 
What I understand here is 'if the $string parameter is an empty string, return it'... that is, IMO, wrong. We have to return an array?

@fadoe Could you please explain your intention here?