Unlikely to happen, but in order to avoid unnecessry copying (e.g. if `maxDepth === '1'), let's be consistent with this condition is all places (e.g. `copy()`, `serializeObject()`, `configureErrorHandling()`).