Added is_object validation.