Check for null and empty token.