def has_elem(elem_ref):
if not is_elem_ref(elem_ref):<EOL><INDENT>return False<EOL><DEDENT>elif elem_ref[<NUM_LIT:0>] == ElemRefObj:<EOL><INDENT>return hasattr(elem_ref[<NUM_LIT:1>], elem_ref[<NUM_LIT:2>])<EOL><DEDENT>elif elem_ref[<NUM_LIT:0>] == ElemRefArr:<EOL><INDENT>return elem_ref[<NUM_LIT:2>] in elem_ref[<NUM_LIT:1>]<EOL><DEDENT>
Has element?
:param elem_ref:
:return: