This could be `return if i == 0 { SelfRecursive } else { ContainsRecursive }`. (Also, the `;` at the end of the `if` here is not required.)