Doesn't this mean that apiMock would be turned on all the time (if the http request isn't asking for mock)? It would almost always be true. If doMock param is true then it's true, if it's undefined it's also true. Only if the param was explicitly false would doMock be false?