added allOptional() and allRequired() to object condition