I think `undefined` should mean it doesn't mock. Because that's the regular use-case then apiMock should be turned off unless $location has apiMock set. Only when the request has apiMock as true does it override. IMHO.