def METHOD_NAME(node, suite):
    try:
        assert suite.start_pos <= jedi_name.start_pos < suite.end_pos
        assert node.type in ('power', 'atom_expr')
        base = node.children[0]
        assert base.type == 'name' and base.value == 'hasattr'
        trailer = node.children[1]
        assert trailer.type == 'trailer'
        arglist = trailer.children[1]
        assert arglist.type == 'arglist'
        from jedi.evaluate.arguments import TreeArguments
        args = list(TreeArguments(node_context.evaluator, node_context, arglist).unpack())
        # Arguments should be very simple
        assert len(args) == 2
        # Check name
        key, lazy_context = args[1]
        names = list(lazy_context.infer())
        assert len(names) == 1 and is_string(names[0])
        assert force_unicode(names[0].get_safe_value()) == payload[1].value
        # Check objects
        key, lazy_context = args[0]
        objects = lazy_context.infer()
        return payload[0] in objects
    except AssertionError:
        return False