M: Library: add 'exist'-method for checking existence of file or folder. +tests