Added docstring to is_file method