`strlen($string) > $maxLength` works nicer.  No need to ellipsize if the result is shorter than it.