Added method 'path_exists'