def check_lifecycle(node, interface_type):
    """Check that an interface type is present """
    if [x for x in node.interfaces if interface_type in x.type]:
        return True
    else:
        try:
            return "create" in node.type_definition.interfaces[interface_type]
        except (AttributeError, KeyError, TypeError):
            return False