added missing return value
adjsuted initialization logic to handle bot user id's, invalid user id from wp