Check for XHR request instead of using default fall-through return