The check is in the parent method - `getDefaultProvider`. I factored it out there because it was also needed for the `CreateImageCommand`.