from pathlib import Path


def is_file(file_obj):
    """Check a file exists on the system.

    Examples
    --------
    ::

         >>> from pyutil.sys_checks import is_file
         >>> if is_file('path/to/file'):
             >>> pass

    """
    p = Path(file_obj)
    return p.is_file()