from pathlib import Path


def file_exists(filename):
    """ Returns true if file exists
    :param filename: The file name to check
    :type  filename: str
    :returns: True if file exists
    :rtype: bool
    """
    file_handle = Path(filename)
    if file_handle.is_file():
        return True
    else:
        return False