check request is nil or not