from pathlib import Path


def is_file(path: Path) -> bool:
    """
    Return true if the given path is a file, false otherwise.
    :param path: a Path
    :return: a bool
    """
    return path.is_file()