Bug with twitter response

If the user does not set his/her twitter handle, the twitter request url turns out to be:

Request:
        http://api.twitter.com/1/statuses/user_timeline/.json
Response:
        array(2) { ["request"]=> string(31) "/1/statuses/user_timeline/.json" ["error"]=> string(14) "Not authorized" }

Wierd but the response contains the key "error" and not "errors". As a result the if condition is met and thus results in a bug.