Use #new_record? on internal objects to avoid a deprecation warning