change checking method for folder items

using isOfType(Windows.Storage.StorageItemTypes.folder)