hasFolder method