from typing import Any


def _has_subelement(source_element: Any, subelement: Any) -> bool:
    """ Fail-safe check if sub-element is part of the source element.
    """
    try:
        return (subelement in source_element)
    except TypeError:
        return False