see if HTTP_USER_AGENT isset before using strpos on it