Moved media belonging check to MediaDirectory