GCP-7001 darla`s comments, applied mae`s logic isfolder()