Simple Objective-C object validation.