Changed request.xhr? to return boolean instead of 0 or nil

Changed return values  for `request.xhr?` to  `true` or `false` instead of `nil` and `0`.