class RuboCop::Cop::Style::Next

def if_else_children?(node)

def if_else_children?(node)
  node.each_child_node(:if).any?(&:else?)
end