Implement path_exists? method