objc: check that required fileds are not nil