added isValid method to objc PdFile