Recursive check if is an interface