Added check to see  if request.target and request.params isn't empty.