from typing import List
from typing import Union


def list_or_first(x: List[str]) -> Union[List[str], str]:
    """
    Returns a list if the number of elements is
    greater than 1 else returns the first element of
    that list
    """

    return x if len(x) > 1 else x[0]