Fixed bug in request.xhr? to return boolean

Fixed bug for `request.xhr?` to return `true` or `false` isntead of `nil` and `0`.