check if path exist before inseting it to the media store