class RuboCop::Cop::Lint::RedundantSafeNavigation

def check?(node)

def check?(node)
  parent = node.parent
  return false unless parent
  condition?(parent, node) ||
    parent.operator_keyword? ||
    (parent.send_type? && parent.negation_method?)
end