substr() exhibits rather unexpected behavior with respect to when it returns "" and when it returns FALS ...
php.net