Check isset HTTP_USER_AGENT. Fix #2