def resource_is_object(resource):
    """Check if the resource is a simple object."""
    if resource:
        return (
            "metadata" in resource
            and "kind" in resource
            and "name" in resource["metadata"]
        )
    return False