def is_file(path):
    '\n    just check whether there is a file on given path\n    '
    return (path and os.path.isfile(path))
just check whether there is a file on given path
def is_file(path):
    '\n    \n    '
    return (path and os.path.isfile(path))