from pathlib import Path


def _is_file_exists(path: str) -> bool:
    """Whether the path is a file.

    Args:
        path: The file path.

    Returns:
        True if the path is a file, otherwise returns False.
    """
    return Path(path).is_file()