def CheckIsFile(filename):
if not IsFile(filename):<EOL><INDENT>from ._exceptions import FileNotFoundError<EOL>raise FileNotFoundError(filename)<EOL><DEDENT>
Check if the given file exists.

@filename: unicode
    The filename to check for existence.

@raise: FileNotFoundError
    Raises if the file does not exist.