No $to_user_id < 0 is not caught by other code, we can either use this or substitute it with - $to_user_id && $to_user_id != ANONYMOUS whichever you feel best