Citation: https://github.com/octokit/octokit.net/blob/master/Octokit/Helpers/Ensure.cs#L32