from typing import Dict


def is_grpc_enabled(server_config: Dict) -> bool:
    """
    Checks if the API has the grpc protocol enabled (cortex.yaml).

    Args:
        server_config: API configuration.
    """
    return server_config["protobuf_path"] is not None